Except for the configure files listed in the repository, there are some other tools worth being marked down.
- Install
zshand make it the default shell:
sudo apt install zsh
chsh -s $(which zsh)- Install
oh-my-zsh:
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"- Configure
zsh:
-
Change the theme to
agnosterby modifyingZSH_THEME="agnoster". -
Add
autosuggestions:
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
# Add the plugin to the list of plugins for Oh My Zsh to load (inside ~/.zshrc)
plugins=(
# other plugins...
zsh-autosuggestions
)-
Remove
hostnameby settingprompt_context() {}. -
Install and add
zsh-syntax-highlightingto yourzshfile like the following:
echo "source /usr/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" >> ${ZDOTDIR:-$HOME}/.zshrc-
Others:
Better to
toucha newzshconfigure file named.zshenvto store other plugins' configuration, such asexport=.., etc. Leave the.zshrcalone with configuration not referring to any other tools other thanzshitself and some OS options, such as making a proxy setting.