[Mac] 打造美觀又潮的終端機:iTerm + Oh My Zsh + Agnoster + Powerline
![[Mac] 打造美觀又潮的終端機:iTerm + Oh My Zsh + Agnoster + Powerline [Mac] 打造美觀又潮的終端機:iTerm + Oh My Zsh + Agnoster + Powerline](https://blog.ctrlxctrlv.net/wp-content/uploads/2018/04/mac-iterm-zsh-700x290.png)
只要是在 Mac 環境下工作的工程師
一定會使用到 Terminal
但內建的實在太醜、完全沒有 highlight
加上沒分頁,用起來實在很不方便
看起來不夠宅不夠專業
所以趕快來把你的 Terminal 用潮一點吧!
Overview
1. Install Homebrew
/usr/bin/ruby -e “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)”
2. Install iTerm
brew cask install iTerm2
brew install caskroom/cask/iterm2
brew install caskroom/versions/iterm2-legacy
brew install caskroom/versions/iterm2-nightly
3. Install Oh My Zsh
sh -c “$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)”
4.Set zsh theme to agnoster
edit ~/.zshrc file
and set ZSH_THEME=”agnoster”
5. Install Powerline Fonts
git clone https://github.com/powerline/fonts.git
cd fonts
./install.sh
cd ..
rm -rf fonts
6.Remove device name & user name
edit ~/.zshrc file and add
export DEFAULT_USER=whoami