代码语言:javascript复制
yum install zsh -y
代码语言:javascript复制apt install zsh -y
oh-my-zsh
代码语言:javascript复制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
代码语言:javascript复制git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
zsh-autosuggestions
代码语言:javascript复制git clone https://github.com/zsh-users/zsh-autosuggestions.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
plug
代码语言:javascript复制sed -i "s/plugins=(git)/plugins=(git zsh-syntax-highlighting zsh-autosuggestions docker)/g" ~/.zshrc
代码语言:javascript复制source ~/.zshrc
env
代码语言:javascript复制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