1.安裝zsh
sudo apt install zsh
2.安裝oh-my-zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
安裝完要注銷才會生效,下面是切換終端工具命令
exec bash
exec zsh
安裝命令自動補齊插件
https://github.com/zsh-users/zsh-autosuggestions/blob/master/INSTALL.md
選Oh My Zsh安裝
3.配置一些實用插件
插件在~/.oh-my-zsh/plugins目錄下,把有需要的配到~/.zshrc文件中朱浴,插件之間用空格隔開,如下:
vi ~/.zshrc
plugins=(
git extract z laravel5
)
實用工具:zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
vi ~/.zshrc
plugins=(zsh-autosuggestions)
退出編輯墙懂,運行下面命令使配置生效
source ~/.zshrc
詳情請看:
https://github.com/robbyrussell/oh-my-zsh/wiki/Plugins-Overview
4.終端代理(簡單粗暴)
需要有如某梭的代理客戶端
vi ~/.zshrc
export ALL_PROXY=socks5://127.0.0.1:1080
source ~/.zshrc