ZSH¶
Include:
- zsh
- oh-my-zsh
Install¶
Install zsh:
sudo apt-get install zsh
sudo yum install zsh
Install oh-my-zsh:
export ZSH="$HOME/.zsh.d/oh-my-zsh"; sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)""
sh -c "$(wget -O- https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
sh -c "$(fetch -o - https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
set zsh as default shell
chsh -s $(which zsh)
echo “source ~/myCode/dotfiles/etc/zsh/zshrc” > ~/.zshrc
Customize your oh-my-ZSH¶
Include:
- themes
- plugins
Customize your themes¶
Pick one theme in ~/.zsh.d/oh-my-zsh/themes:
ZSH_THEME="random"
You can manage other zsh themes with oh-my-zsh, just modify ~/dotfiles/etc/zsh/zshrc:
git clone <theme-url> ~/.zsh.d/oh-my-zsh/themes/<theme-name>
ZSH_THEME="<theme-name>/<theme-name>"
Customize your plugins¶
Pick plugins in ~/.zsh.d/oh-my-zsh/plugins:
plugins+=()
You can manage other zsh plugins with oh-my-zsh, just modify ~/dotfiles/etc/zsh/zshrc:
git clone <plugin-url> ~/.zsh.d/oh-my-zsh/custom/plugins/<plugin-name>
plugins+=(<plugin-name>)
<https://github.com/zsh-users/zsh-syntax-highlighting/blob/master/INSTALL.md>
<https://github.com/zsh-users/zsh-completions>
<https://github.com/zsh-users/zsh-autosuggestions/blob/master/INSTALL.md>