Youtube Tutorial - zsh-powerlevel10k 教學 - 漂亮的 terminal
先來上一張圖
這邊範例使用 Oh My Zsh, 如果你還沒安裝, 請參考之前的文章
在開始安裝之前, 強烈建議先安裝字體 (不然有些圖可能會顯示不出來 😓)
how-was-the-recommended-font-created
自己 build 出字體 ( 使用 docker build, 我自己 clone 加上 build 是還蠻久的 😅)
或是直接下載現成的 Manual font installation
官方推薦使用 MesloLGS NF font
git clone --depth=1 https://github.com/romkatv/nerd-fonts.git
cd nerd-fonts
./build 'Meslo/S/*'如果一切沒問題, ttf 檔案會出現在 ./out.
安裝字體的方式,
將你的字體 copy 到 /usr/share/fonts/truetype/ 裡面,
然後執行 sudo fc-cache -f -v (更新字體快取).
設定 vscode terminal 字體
{
......
"terminal.integrated.fontFamily": "MesloLGS NF"
......
}設定 GNOME terminal 字體
設定 Konsole 字體
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k接著執行 vim ~/.zshrc, 修改主題 ZSH_THEME="powerlevel10k/powerlevel10k".
重新打開 terminal 就會跳出設定介面了.
如果沒有自動跳出設定的介面, 可以手動執行 p10k configure.
說明一下這個設定
如果你選 no, 就和一般的一樣
如果你選 yes, 你輸入的指令永遠都會在最下方







