zsh iterm2的一点折腾
# iterm2 zsh
#FE/tools
代理
export https_proxy=http://127.0.0.1:8888;export http_proxy=http://127.0.0.1:8888
安装oh-my-zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
~/.zshrc
文件中修改ZSH_THEME="agnoster"_
powerline
安装pip 需要pythonsudo easy_install pip
Powerlinepip install powerline-status
pip install git+git://github.com/powerline/powerline
执行pip show powerline-status
得到图中location
在.zshrc
中添加. /{location}/powerline/bindings/bash/powerline.sh
Vim 激活
在.vimrc
中添加
|
|
字体
不安装会字符显示错误git clone https://github.com/powerline/fonts.git
cd fonts
./install.sh
在iterm2 Preference > Profiles > Text > Change Fonts
testecho "\ue0b0 \u00b1 \ue0a0 \u27a6 \u2718 \u26a1 \u2699"
输出如下
配色
参考zsh 全程指南
plugins
hahahhaha
延伸阅读
zsh
powerline
pip
zsh 全程指南
http://cenalulu.github.io/linux/mac-powerline/
http://www.jianshu.com/p/68ef9d2e1653
如何让终端走代理