Ubuntu 18.04 安裝 zsh

markdown * 安裝zsh ``` sudo apt install zsh ``` * 安裝 Oh My Zsh (可選) 可以不裝,但單純的zsh滿醜的 ``` curl -L https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh | sh // 如果沒有 curl, git 的話 // sudo apt install curl // sudo apt install git ``` * 把zsh設爲default termial ``` chsh -s /bin/zsh // 記得登出 ``` * 設定zsh 外觀 ``` // 挑一個喜歡的編輯器,如果不太熟純文字編輯器的話建議使用 gedit vim ~/.zshrc nano ~/.zshrc gedit ~/.zshrc ``` 修改這一行的內容,[點此](https://github.com/robbyrussell/oh-my-zsh/wiki/themes)查看自己喜歡什麼主題 ``` ZSH_THEME="robbyrussell" ``` 我覺得agnoster滿好看的,所以改成 ``` ZSH_THEME="agnoster" ``` 重新啓動 termianl
WTF.....跟剛剛看到的不一樣阿 再仔細看看github下方的說明 Install one of the patched fonts from [Vim-Powerline](https://github.com/powerline/fonts) or [patch your own](https://github.com/powerline/fontpatcher) for the special characters. 噢...要裝字型 ``` sudo apt-get install fonts-powerline ```
讚~~~

留言

這個網誌中的熱門文章

Voice Over IP (VoIP) Best Practices

在Ubuntu 上製作可開機隨身碟