# Oh-my-zsh [oh my zsh github](https://github.com/robbyrussell/oh-my-zsh) 自行git clone ## 設定oh-my-zsh ### Update the packages ``` sudo apt-get update sudo apt upgrade ``` ### Install prerequisite packages ``` sudo apt install zsh sudo apt-get install powerline fonts-powerline ``` ### Clone the Oh my zsh Respo ``` git clone https://github.com/robbyrussell/oh-my-zsh.git ``` ### Create a New ZSH configuration file ``` cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc ``` ### Set up a Fancy theme for Terminal Open .zshrc - ``` vim ~/.zshrc``` Find the line ```ZSH_THEME="robbyrussell" ``` and replace ```robbyrussell``` with ```agnoster``` in ```.zshrc``` ``` esc :wq``` ### Change Default shell ``` chsh -s /bin/zsh ``` ### Updat & Uninstallation oh-my-zsh Visit [github連結](https://github.com/robbyrussell/oh-my-zsh#manual-updates) ``` cd .oh-my-zsh upgrade_oh_my_zsh ``` ## Hilglight Syntax ### Clone the ZSH Syntax Highlighting ``` git clone https://github.com/zsh-users/zsh-syntax-highlighting.git "$HOME/.zsh-syntax-highlighting" --depth 1 ``` ### Add syntax-highlighting in .zshrc Configuration ``` echo "source $HOME/.zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" >> "$HOME/.zshrc" ``` ### Revert Vack to Default Shell ``` chsh -s /bin/bash ``` ### Reopen your Terminal!