先上一張本身終端的圖片。php
首先這是個人我的網站,我的博客網站連接點我 這篇文章在個人網站中的網址是這個本篇文章網址在這裏,點我。爲了更好的閱讀體驗,最好從這裏看,內容都是同樣的。git
說到正題,終端美化,雖然說美化鳥用沒有,可是本身看着好看啊!!!github
首先在終端中安裝zshcurl
sudo apt-get install zsh -y
而後安裝oh-my-zsh,依次執行下面的命令字體
git clone git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc chsh -s /bin/zsh
默認的不太好看,咱們使用另外一個主題Powerlevel10kfetch
安裝方法:執行下面的命令網站
wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | sh
或者,上面的這行代碼或者緊接着的下邊這行代碼,選擇一個輸入一遍就好了url
git clone https://github.com/romkatv/powerlevel10k.git ~/powerlevel10k
再執行code
echo 'source ~/powerlevel10k/powerlevel10k.zsh-theme' >>! ~/.zshrc
下載好以後,發現字體可能亂碼,咱們下面解決blog
若是字體亂碼,執行下面的命令
在終端中執行下面兩條命令
mkdir -p ~/.local/share/fonts cd ~/.local/share/fonts && curl -fLo "Droid Sans Mono for Powerline Nerd Font Complete.otf" https://github.com/ryanoasis/nerd-fonts/raw/master/patched-fonts/DroidSansMono/complete/Droid%20Sans%20Mono%20Nerd%20Font%20Complete.otf
而後打開你的宿主目錄下面的配置文件.zshrc,
vi ~/.zshrc
加入這句話
POWERLEVEL9K_MODE="nerdfont-complete"
便可。配置完成
顯示系統信息用的是這個軟件,screenfetch 安裝方法: apt-get install screenfetch 安裝完成以後就在終端輸入screenfetch便可顯示