Zsh Installation / Ubuntu, macOS Environment
1. Zsh Installation
1.1. Ubuntu
$ apt install zsh
$ curl -L http://install.ohmyz.sh | sh
$ chsh -s `which zsh`
$ zshInstall zsh and oh-my-zsh and set the default shell to Zsh. Proceed from Zsh afterwards.
1.2. macOS
$ brew install zsh zsh-completions
$ curl -L http://install.ohmyz.sh | sh
$ which zsh >> /etc/shells
$ chsh -s `which zsh`
$ zshInstall zsh, zsh-completions, and oh-my-zsh and set the default shell to Zsh. Proceed from Zsh afterwards.
2. Zsh Plugin Download
$ git clone https://github.com/zsh-users/zsh-syntax-highlighting.git $ZSH_CUSTOM/plugins/zsh-syntax-highlighting
$ git clone https://github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM/plugins/zsh-autosuggestions
$ git clone https://github.com/zsh-users/zsh-completions $ZSH_CUSTOM/plugins/zsh-completionsInstall zsh-syntax-highlighting, zsh-autosuggestions, and zsh-completions.
3. Zsh Plugin Configuration
| |
Modify the ~/.zshrc file with the content from [File 1] to configure plugins.