linux终端利器oh-my-zsh(ubuntu 16.04)
2017-12-01 本文已影响0人
Mr_Laoyu
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