oh-my-zsh + powerlevel10k and some plugins
$ brew install zsh # mac
$ brew install --cask iterm2 $ sudo sh -c "echo $(which zsh) >> /etc/shells" # 將 zsh 加入系統的 shell 清單,需要輸入管理者密碼
$ chsh -s $(which zsh) # 把 zsh 設為預設 shell
# via curl
$ sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
# via wget
$ sh -c "$(wget https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh -O -)" $ git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k $ vi ~/.zshrc
# Find ZSH_THEME and Change to
ZSH_THEME="powerlevel10k/powerlevel10k"Then follow the p10k configuration wizard, if it doesn't show up.
$ p10k configure
$ vi ~/.p10k.zsh
# zsh-autosuggestions
$ git clone git://github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM/plugins/zsh-autosuggestions
# zsh-syntax-highlighting
$ git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
# In ~/.zshrc
plugins={
git
web-search
zsh-autosuggestions
zsh-syntax-highlighting
zsh-z
}
# others
$ brew install tldr
$ brew install tmux
$ brew install neovim
$ brew install tree
$ brew install bat
# In ~/.zshrc
alias nv='nvim'
alias q='exit'