1
yum install zsh -y
1
apt install zsh -y

oh-my-zsh

1
2
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
sh -c "$(wget https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh -O -)"

zsh-syntax-highlighting

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

zsh-autosuggestions

1
git clone https://github.com/zsh-users/zsh-autosuggestions.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions

plug

1
sed -i "s/plugins=(git)/plugins=(git zsh-syntax-highlighting zsh-autosuggestions docker)/g" ~/.zshrc
1
source ~/.zshrc

env

echo -e 'export LANG=zh_CN.UTF-8' >> ~/.zshrc
echo -e 'export LC_CTYPE="zh_CN.UTF-8"' >> ~/.zshrc
#####################################
echo -e 'export yourpath=/Users/user/Documents/userpath' >> ~/.zshrc
#####################################
echo -e 'export PATH=$PATH:$yourpath/path' >> ~/.zshrc
echo -e 'export PATH=$PATH:$yourpath/java/maven/bin' >> ~/.zshrc
echo -e 'alias proxy="export https_proxy=http://127.0.0.1:7890 http_proxy=http://127.0.0.1:7890 all_proxy=socks5://127.0.0.1:7890"' >> ~/.zshrc
echo -e 'alias unproxy="export https_proxy= http_proxy= all_proxy="' >> ~/.zshrc
echo -e 'alias testip="curl cip.cc"' >> ~/.zshrc
# mac os
echo -e 'alias subline="/usr/bin/open -a Sublime\ Text $@"' >> ~/.zshrc
echo -e 'alias typora="/usr/bin/open -a Typora $@"' >> ~/.zshrc
echo -e 'alias sqlmap="python3 $yourpath/sqlmap/sqlmap.py $@"' >> ~/.zshrc

```ini