- 安装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() {}