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

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章