zsh is a shell designed for interactive use, although it is also a powerful scripting language. Many of the useful features of bash, ksh, and tcsh were incorporated into zsh; many original features were added.

learn more… | top users | synonyms

4
votes
1answer
2k views

Can't change theme of ZSH in Ubuntu 12.04

I have changed the theme in my ~/.zshrc file however whilst some of the colors in the prompt change the text size and background color remain as the Ubuntu default. Any one know how I can override ...
11
votes
2answers
8k views

Can't make ZSH the default shell

I am trying to set ZSH as my default shell, however it keeps reverting back to bash. I have tried this code: sudo chsh -s $(which zsh) I've also tried: sudo chsh -s /bin/zsh Also tried these ...
5
votes
1answer
2k views

Command history in zsh

Currently I have zsh set up in such a way that command history is shared between all sessions immediately. Say I have a terminal emulator open with two tabs, each with a zsh session, A1 and A2. If I ...
1
vote
2answers
643 views

How to use a hex color code in zsh?

I have color config of my shell PROMPT='%{$fg_bold[red]%}➜ %{$fg_bold[green]%}%p %{$fg[cyan]%}%c %{$fg_bold[blue]%}$(git_prompt_info)%{$fg_bold[blue]%} % %{$reset_color%}' how to use hex color ...
2
votes
1answer
1k views

Shell Prompt Customization?

I have used oh_my_zsh (and tinkered with bash_it) on multiple systems and have generally been happy with it, though I hate it's auto-correction feature and generally turn it off. My usual shell is ...
3
votes
1answer
178 views

How can I get tab completion with juju in zsh?

I use zsh as my shell and tab completion doesn't work, how can I enable it?
6
votes
1answer
275 views

automatically run ls after changing path using autocd

So everytime I change the directory I would like the new path to automatically get listed with ls.There are solutions if the path gets changed using cd but I never found a solution that would work ...
1
vote
1answer
774 views

Cannot change zsh prompt

For some reason I can't change my zsh prompt by typing, say, PS1="%#". I'm using the admin-suggested config on Ubuntu 11.10. Am I doing it wrong or is it a bug? Here's the content of my ~/.zshrc: # ...
2
votes
2answers
2k views

Installing the most recent version of the Z shell

The latest release version of zsh is 4.3.14. I was wondering what is the easiest way to install it on Ubuntu. Is there a PPA for it? Also, is there a site that lists or collects Ubuntu PPA's for ...
-1
votes
1answer
240 views

Opening terminal attempting to run unknown script [closed]

Something odd has just started happening. On opening a new terminal, the first line of the terminal now says: install: target 'xmas' is not a directory. I've no idea what is causing that to happen, or ...
2
votes
2answers
1k views

Git Branch in ZSH Prompt?

When working on a git repository with multiple branches, how do I modify my zsh prompt to include my current active branch?
2
votes
1answer
384 views

How do backslash escapes work with echo -E in zsh?

I have a script where I need to preserve the \\ character sequences but the command echo -E \\ prints \ when it should be \\. Correct? Is this a bug in the version of Ubuntu I am using? I am ...
4
votes
3answers
2k views

How to fix strange backspace behaviour with urxvt + zsh?

I use urxvt in combination with zsh. However since my fresh install of ubuntu 10.04 I have the following problem. If I type backspace the cursor moves to the right (instead of deleting the characters ...
3
votes
1answer
1k views

Changing shell to zsh broke my terminal

I ran sudo chsh -s /bin/zsh to change my default shell to zsh. I then restarted my computer. When I turned it back on I get just $ as the prompt, so it doesn't look like I even get bash any more. ...
11
votes
4answers
1k views

Configuring to detect if a command does not exist, suggest installation

Can the zsh shell be configured to show what bash shows when a command does not exist, similarly to this: kahless:~$ sysv-rc-conf The program 'sysv-rc-conf' is currently not installed. You can ...
13
votes
3answers
15k views

Setting up aliases in zsh

I know that in bash you can set up aliases in a .bash_aliases file so that the command you type doesnt need to be a command stored in the binaries in the system. Is there any way I can get aliases ...
11
votes
1answer
5k views

How do you share history between terminals in zsh?

How can it be achieved so that every command that is entered, is visible in every open terminal's history? When having multiple terminals open, the history isn't shared, i.e. what you entered in one ...
5
votes
2answers
552 views

guake with zsh doesn't start

I changed guake to use /bin/zsh from /bin/bash. now it doesnt start. by start, i mean that when click the shortcut key, guake just pops up for a second, and then disappears. I changed the default ...
96
votes
10answers
34k views

Moving from bash to zsh

I'm considering moving from bash to zsh as I often come across posts praising zsh. I'm an experienced command line user and I'm assuming the basics are pretty much the same, so I'm looking for advice ...