This are the ZSH configuration files I use on Mac and Linux. They are now based on the mighty prezto. Use at your own risk.
-
Install zsh and set as login shell.
On Ubuntu do:
$ sudo apt-get install zsh $ chsh -s /usr/bin/zsh
On Mac OS X do:
$ brew install zsh
Then set the shell in the system preference pane, like here:
-
Clone this repository.
$ git clone git@github.com:mhubig/zsh.git ~/.zsh
-
Clone the zgen.
$ git clone git@github.com:tarjoilija/zgen.git ~/.zgen
-
Start ZSH and link the config files.
$ zsh % zfiles=(zlogin zlogout zprofile zshenv zshrc) % for file in $zfiles; do ln -s "$HOME/.zsh/$file" "$HOME/.${file:t}" done
-
Make your own copy of the zlocal file.
$ cp ~/.zsh/zlocal.example ~/.zsh/zlocal $ vim ~/.zsh/zlocal
-
Now restart your terminal!