linux终端使用terminator+zsh并且使用oh my zsh美化

  1. 安装terminator:
sudo apt-get install terminator
  1. 安装zsh取代bash:
    sudo apt-get install zsh
    将zsh设置为默认的shell:
    chsh -s $(which zsh)
    重启后看到配置选项,选择第二个

  2. 安装oh my zsh
    sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

  3. 安装Powerline fonts
    sudo apt-get install fonts-powerline

  4. 使用vi ~/.zshrc里面
    change ZSH_THEME=“robbyrussell” to ZSH_THEME=“agnoster”

  5. 安装Solarized color

git clone git://github.com/sigurdga/gnome-terminal-colors-solarized.git ~/.solarized
cd ~/.solarized
./install.sh

选择选项一

eval `dircolors ~/.dir_colors/dircolors`
  1. 在terminator配置里面:
    Preferences>Profiles>Colors>Foreground and Background>Built-in schemes: Solarized dark
    Preferences>Profiles>Colors>Palette>Built-in schemes: Solarized

  2. 安装Autosuggestions,自动提示:
    git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
    然后在.zshrc里面配置plugins=(zsh-autosuggestions)
    然后使用→箭头使用提示

  3. 去掉hostname,占位置:
    zshrc加上:prompt_context() {}

你可能感兴趣的:(linux终端使用terminator+zsh并且使用oh my zsh美化)