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

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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

XRSec has the right to modify and interpret this article. If you want to reprint or disseminate this article, you must ensure the integrity of this article, including all contents such as copyright notice. Without the permission of the author, the content of this article shall not be modified or increased or decreased arbitrarily, and it shall not be used for commercial purposes in any way