Linux终端美化

1.安装终端软件terminator,可自行选择。

 sudo apt-get install terminator -y 

2.安装zsh

 sudo apt-get install zsh -y      

 3.安装oh-my-zsh

sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

4.安装powerline字体

# clone
git clone https://github.com/powerline/fonts.git --depth=1

# install
cd fonts
./install.sh

# clean-up a bit
cd ..
rm -rf fonts

5.设置终端字体为“Meslo LG M DZ for Powerline”

6.设置ohmyzsh主题为powerlevel9k

git clone https://github.com/bhilburn/powerlevel9k.git ~/.oh-my-zsh/custom/themes/powerlevel9k

#编辑~/.zshrc
ZSH_THEME="powerlevel9k/powerlevel9k"

7.设置powerlevel9k的Prompt Segments

export POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(os_icon user dir)

8.安装oh-my-zsh插件

#高亮插件
https://github.com/zsh-users/zsh-syntax-highlighting.git 
#语法历史记录自动补全插件
https://github.com/zsh-users/zsh-autosuggestions
#自动跳转插件
https://github.com/wting/autojump
sudo apt-get install autojump -y

 

你可能感兴趣的:(Ubuntu)