zsh 配置文件
发表于|更新于
|总字数:285|阅读时长:1分钟|浏览量:
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 -)"
|
1
| git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
|
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
|
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