CentOS:python
yum -y install git zsh
Ubuntu: git
apt-get -y install git zsh
github的連接以下github
https://github.com/robbyrussell/oh-my-zshvim
安裝的命令以下: ruby
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
安裝結束以後,自動進入了oh-my-zsh界面,能夠看到酷炫的oh-my-zsh的歡迎界面。ssh
zgen的github的連接以下curl
https://github.com/tarjoilija/zgenurl
clone zgen項目到home目錄下面:spa
cd ~ git clone https://github.com/tarjoilija/zgen.git .zgen
首先在~/.zshrc 的末尾添加以下的配置信息,導入zgen插件
# load zgen source "${HOME}/.zgen/zgen.zsh" source "${HOME}/.zgenrc"
同時在HOME目錄下面新建一個.zgenrc文件,內容以下:
# check if there's no init script if ! zgen saved; then echo "Creating a zgen save" zgen oh-my-zsh # plugins zgen oh-my-zsh plugins/git zgen oh-my-zsh plugins/sudo zgen oh-my-zsh plugins/command-not-found zgen load zsh-users/zsh-syntax-highlighting # plugins zgen oh-my-zsh plugins/git zgen oh-my-zsh plugins/sudo zgen oh-my-zsh plugins/command-not-found zgen oh-my-zsh plugins/pip zgen oh-my-zsh plugins/sudo #zgen oh-my-zsh plugins/aws zgen oh-my-zsh plugins/chruby #zgen oh-my-zsh plugins/colored-man zgen oh-my-zsh plugins/git zgen oh-my-zsh plugins/github zgen oh-my-zsh plugins/knife zgen oh-my-zsh plugins/knife_ssh zgen oh-my-zsh plugins/python zgen oh-my-zsh plugins/rsync zgen oh-my-zsh plugins/screen zgen oh-my-zsh plugins/vagrant zgen load zsh-users/zsh-syntax-highlighting zgen load chrissicool/zsh-256color #zgen load /path/to/super-secret-private-plugin zgen load zsh-users/zsh-history-substring-search zgen load zsh-users/zsh-autosuggestions # completions zgen load zsh-users/zsh-completions src # theme #zgen oh-my-zsh themes/miloshadzic zgen oh-my-zsh themes/arrow # save all to init script zgen save fi ##autosuggestion bindkey '^f' vi-forward-word bindkey '^e' vi-end-of-line #### custom configure export EDITOR=vim
初始化zgen配置
zgen save
刪除初始化配置
zgen reset
檢查是否已經初始化,若是已經初始化,返回0
zgen saved
更新全部的插件而且重置
zgen update
更新zgen
zgen selfupdate