Questions tagged [zsh]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
18 votes
1 answer
35k views

How to change default shell in FreeBSD?

The default shell in FreeBSD is sh and I really can't stand it: autocomplete is very limited, and rehash commands kill me. I feel like a one armed and one legged man... How can I change the shell ...
holms's user avatar
  • 1,584
2 votes
3 answers
71 views

Anybody knows if there is a counterpart for CTR+w , that deletes immediate words after cursor

I mean when the cursor is on the left side of the words ,I would like to remove the words on the immediate right side of it . CTR+k remove everything on the right side, i only want one word to be ...
Eric's user avatar
  • 21
1 vote
1 answer
217 views

Toggle Foreground Process

Ctrl-z suspends the foreground process, but when there is nothing in the foreground it has no effect. I want to overload ctrl-z so when there is nothing in the foreground it brings the most recently ...
Blake Taylor's user avatar
5 votes
1 answer
754 views

Looking for zsh completion file for osX native commands

I've been digging deep into what actually comes with osX in /usr/bin and especially /usr/libexec. Quite good stuff really, although the command syntax is a bit.. odd. Let me direct the curious to ...
chiggsy's user avatar
  • 1,586
1 vote
2 answers
1k views

why won't bash display the results of a 'bind -p' command?

bash refuses to give me the output of 'bind -p' when I pass it in with the -c switch: bash -c 'bind -p' but it works to type bind -p directly at the bash prompt, and it works to type something ...
iconoclast's user avatar
  • 1,830
21 votes
4 answers
18k views

How to edit command completion for ssh on zsh?

I'd like to set up command completion on zsh to display host names after I type ssh [TAB] taking the names out of my .ssh/config file (and preferably from known_hosts and /etc/hosts and anywhere ...
iconoclast's user avatar
  • 1,830
8 votes
3 answers
21k views

How can I open a file whose name starts with "-"?

I am running Ubuntu, and would like to open a file whose file name starts with "-"(minus). When I try to open the file with pico or vim, the command thinks that the "-" sign is an option for the ...
PJ.'s user avatar
  • 3,027
9 votes
3 answers
7k views

ls gives me "illegal option"

I recently installed zsh and now whenever I ls or ls -l or ls anything I get "illegal option". Not sure where to start looking to fix this.
pondermatic's user avatar
1 vote
1 answer
66 views

Running Job and Paused Job Writing to the same File

So I ran tcpdump twice overnight by accident, both outputting to the same file. However, I ran them as jobs and one of them has been paused the whole time. Anyone have a recommendations on how to ...
Kyle Brandt's user avatar
  • 84.3k
3 votes
2 answers
3k views

ZSH `--color=auto` doesn't work

For some reason when I execute the following: ls --color=auto Results with: ls: illegal option -- - usage: ls [-ABCFGHLOPRSTUWabcdefghiklmnopqrstuwx1] [file ...] Not sure why this is happening, I'...
JP Silvashy's user avatar
  • 1,487
6 votes
2 answers
8k views

Removing history or line numbers from ZSH history file

For some reason I get these odd line numbers or history numbers of some sort into my ~/.zsh_history file like so: : 1266694881:0;rake db:migrate I'd rather not have to resort to regexing out the ...
JP Silvashy's user avatar
  • 1,487
32 votes
2 answers
13k views

How do I make zsh completion act more like bash completion?

I'm a recent convert from bash to zsh (which I'm using "oh my zsh" with), but one thing annoys me: When I hit the tab key, the first autocompletion is filled out automatically, and you need to cycle ...
sanity's user avatar
  • 759
4 votes
1 answer
15k views

zsh colored files directories

I have a host for my VM, when it had a fresh install of Ubuntu the bash shell had colored directories and files. How do I duplicate this with ZSH, i've customized my PS1 but I want to customize the ...
JP Silvashy's user avatar
  • 1,487
36 votes
8 answers
24k views

Is there any reason to use bash over zsh? [closed]

I'm curious about why one would want to run bash instead of zsh. I mean zsh is fully backwards-compatible with bash. Don't get me wrong: I don't dislike bash or anything. I just genuinely want to ...
Jason Baker's user avatar
  • 1,219
2 votes
3 answers
3k views

Change the shell for cron job

I have a zsh script that I would like to run via anacron every week. It runs fine from an interactive bash shell, but when run by anacron, I am getting command not found errors and it looks like it ...
Ryan Ahearn's user avatar
1 vote
1 answer
202 views

Enable 8th bit as Meta in zsh without a warning

In my quest to configure my shell to work exactly how I want it with respect to the alt/meta key I am having some trouble. Recently I added "bindkey -m" to my .zshrc and now whenever I start a zsh ...
Jason Axelson's user avatar
6 votes
2 answers
5k views

Unable to understand the benefit of Zsh's autopushd

I have in .zshrc setopt autopushd It makes cd acts like pushd. This means that we have no stack at all. When I have used it, I have not used stack at all, since it removes stack from me. I am not ...
Léo Léopold Hertz 준영's user avatar
4 votes
4 answers
1k views

How can I add a word to each element of the array in Zsh?

I did in Zsh: array={geometry, analysis, topology, graph theory, calculus} echo $array and then I wanted to add word "math:" to each element like" math:calculus": while (( i++ < 10)); { echo ...
user avatar
2 votes
2 answers
618 views

Unable to make Zsh not to suggest a fix for an alias

I have an alias for alias tdA='todo -a' I get the following in Zsh tdA zsh: correct 'tdA' to 'tda' [nyae]? How can you make Zsh not to suggest a fix for an alias?
Léo Léopold Hertz 준영's user avatar
67 votes
10 answers
19k views

Unique Features of bash compared to zsh

I have been a zsh user for quite some time (before that tcsh and before that csh). I am quite happy with it, but was wondering if there are any compelling features of bash that do not exist in zsh. ...
Tim's user avatar
  • 1,899

1
2