- 安裝terminator:
sudo apt-get install terminator
-
安裝zsh取代bash:
sudo apt-get install zsh
將zsh設置爲默認的shell:
chsh -s $(which zsh)
重啓後看到配置選項,選擇第二個 -
安裝oh my zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
-
安裝Powerline fonts
sudo apt-get install fonts-powerline
-
使用
vi ~/.zshrc
裏面
change ZSH_THEME=“robbyrussell” to ZSH_THEME=“agnoster” -
安裝Solarized color
git clone git://github.com/sigurdga/gnome-terminal-colors-solarized.git ~/.solarized
cd ~/.solarized
./install.sh
選擇選項一
eval `dircolors ~/.dir_colors/dircolors`
-
在terminator配置裏面:
Preferences>Profiles>Colors>Foreground and Background>Built-in schemes: Solarized dark
Preferences>Profiles>Colors>Palette>Built-in schemes: Solarized -
安裝Autosuggestions,自動提示:
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
然後在.zshrc裏面配置plugins=(zsh-autosuggestions)
然後使用→箭頭使用提示 -
去掉hostname,佔位置:
zshrc加上:prompt_context() {}