Linux Software - Oh my zsh

一款终端美化工具,详见:https://www.jianshu.com/p/4a90675a6e6b

安装zsh

1
sudo apt-get install zsh

切换到zsh

1
chsh -s /bin/zsh

安装oh my zsh

1
sh -c "$(wget https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)"

主题配置

powerlevel主题配置

1
2
将powerlevel9k.zip 解压后放到 ~/.oh-my-zsh/custom/themes
在~/.zshrc 配置 ZSH_THEME="powerlevel9k/powerlevel9k" 

powerlevel9k.zip

配置主题样式环境变量

1
2
3
POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=( dir vcs)
POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(status time)
POWERLEVEL9K_MODE='awesome-fontconfig'

字体安装

1
2
3
git clone https://github.com/powerline/fonts.git --depth=1
cd fonts
./install.sh

修改配置文件

替换~/.config/terminator/config文件

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
[global_config]
[keybindings]
[profiles]
  [[default]]
    background_color = "#002b36"
    cursor_color = "#aaaaaa"
    font = Fira Mono for Powerline Bold 17
    foreground_color = "#839496"
    show_titlebar = False
    use_system_font = False
[layouts]
  [[default]]
    [[[window0]]]
      type = Window
      parent = ""
    [[[child1]]]
      type = Terminal
      parent = window0
[plugins]
0%