Zsh
Install zsh and zsh completions
- Type this in Terminal:brew install zsh zsh-completions
- Then edit /etc/shells
- Append this line at the end:/usr/local/bin/zsh
- If you are editing the file using vi, make sure you typesudofirst.
Install oh-my-zsh
- To install Oh My ZSH!
- Visit http://ohmyz.sh/
- Copy and paste the installation script to your Terminal
- Then follow the instructions from the output in Terminal
- Notes: Press control-Cwhen you see this prompt:Time to change your default shell to zsh! Changing shell for your_name. Password for your_name:
- You can change your default shell later. See below.
.zshrc
- Edit the .zshrcby opening the file in a text editor, replace:plugins=(git)
- by: - plugins=(git colored-man colorize github jira vagrant virtualenv pip python osx zsh-syntax-highlighting)
- Add the followings to the end of file: - fpath=(/usr/local/share/zsh-completions $fpath) if [ -f $HOME/env.sh ]; then source $HOME/env.sh fi
Changing the default shell
Set Zsh as the default shell
- Type this in the Terminal:chsh -s /usr/local/bin/zsh
- Then press Cmd+Tto open a tab orCmd+Nto open a new Terminal window.
Set Bash as the default shell
- Type this in the Terminal:chsh -s /bin/bash
- Then press Cmd+Tto open a tab orCmd+Nto open a new Terminal window.
To check which shell you are using
- Type this in the Terminal:echo $SHELL