Oh My Zsh is installed by running one of the following commands in your terminal. You can install this via the command-line with either curl or wget.
1 2 3 4 5 6 7 8
# curl sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
# wget sh -c "$(wget https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)"
# The default location is ~/.oh-my-zsh (hidden in your home directory) export ZSH="$HOME/.dotfiles/oh-my-zsh"; sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
# Once you find a theme that you'd like to use, you will need to edit the ~/.zshrc file. You'll see an environment variable (all caps) in there that looks like: ZSH_THEME="robbyrussell"
# If you're feeling feisty, you can let the computer select one randomly for you each time you open a new terminal window. ZSH_THEME="random"# (...please let it be pie... please be some pie..)
# And if you want to pick random theme from a list of your favorite themes: ZSH_THEME_RANDOM_CANDIDATES=( "robbyrussell" "agnoster" )
插件
1 2
# ~/.zshrc plugins=(git encode64 urltools)
升级
1 2 3 4 5 6 7 8 9 10 11
# By default, you will be prompted to check for upgrades every few weeks. If you would like oh-my-zsh to automatically upgrade itself without prompting you, set the following in your ~/.zshrc:
DISABLE_UPDATE_PROMPT=true
# To disable automatic upgrades, set the following in your ~/.zshrc:
DISABLE_AUTO_UPDATE=true
# If you'd like to upgrade at any point in time (maybe someone just released a new plugin and you don't want to wait a week?) you just need to run:
upgrade_oh_my_zsh
卸载
If you want to uninstall oh-my-zsh, just run uninstall_oh_my_zsh from the command-line. It will remove itself and revert your previous bash or zsh configuration.