Oh_my_zsh

Posted by Elli0t on 2020-03-11

shell 切换

1
2
3
4
5
6
7
8
9
10
11
apt-get install zsh

chsh -s /bin/zsh

cat /etc/shells

reboot

echo $SHELL

sh -c "$(wget https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)"

修改主题

https://zshthem.es/all/

插件

1
2
3
4
5
6
在 ~/.zshrc 中
plugins=(git zsh-autosuggestions zsh-syntax-highlighting extract python z zsh-history-substring-search)

git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
git clone git://github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM/plugins/zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-history-substring-search ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-history-substring-search