当前位置:网站首页>Zsh configuration file

Zsh configuration file

2022-07-06 09:52:00 XRSec

yum install zsh -y
apt install zsh -y

oh-my-zsh

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

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

zsh-autosuggestions

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

plug

sed -i "s/plugins=(git)/plugins=(git zsh-syntax-highlighting zsh-autosuggestions docker)/g" ~/.zshrc
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 [email protected]"' >> ~/.zshrc
echo -e 'alias typora="/usr/bin/open -a Typora [email protected]"' >> ~/.zshrc
echo -e 'alias sqlmap="python3 $yourpath/sqlmap/sqlmap.py [email protected]"' >> ~/.zshrc
原网站

版权声明
本文为[XRSec]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202131741124892.html