Switch to zplug

This commit is contained in:
Anton Zadvorny 2018-10-20 21:39:31 +03:00
parent cfafe2adf5
commit 072c3718a1
3 changed files with 40 additions and 8 deletions

2
home/.zshenv Normal file
View File

@ -0,0 +1,2 @@
export LC_ALL=en_US.UTF-8
export ASDF_DATA_DIR=~/.asdf

View File

@ -1,11 +1,41 @@
ZSH=$HOME/.oh-my-zsh [ -s "$HOME/.zshenv" ] && source $HOME/.zshenv
ZSH_THEME="cheetah"
plugins=(osx brew git github redis-cli ruby rbenv gem bundler sublime pass docker zsh-syntax-highlighting) if [[ ! -d ~/.zplug ]]; then
git clone https://github.com/zplug/zplug ~/.zplug
source ~/.zplug/init.zsh && zplug update --self
fi
source ~/.zplug/init.zsh
source $ZSH/oh-my-zsh.sh zplug "zplug/zplug", hook-build:'zplug --self-manage'
export LANG=en_US.UTF-8 zplug "junegunn/fzf-bin", from:gh-r, as:command, rename-to:fzf
export LANGUAGE=en_US.UTF-8 zplug "b4b4r07/enhancd", use:init.sh
export LC_ALL=en_US.UTF-8 if zplug check "b4b4r07/enhancd"; then
export PATH="/usr/local/bin:$PATH" export ENHANCD_FILTER="fzf --height 50% --reverse --ansi"
export ENHANCD_DOT_SHOW_FULLPATH=1
fi
zplug "lib/completion", from:oh-my-zsh
zplug "lib/directories", from:oh-my-zsh
zplug "lib/grep", from:oh-my-zsh
zplug "lib/history", from:oh-my-zsh
zplug "lib/termsupport", from:oh-my-zsh
zplug "plugins/asdf", from:oh-my-zsh
zplug "plugins/bundler", from:oh-my-zsh
zplug "plugins/docker", from:oh-my-zsh
zplug "plugins/git", from:oh-my-zsh
zplug "zsh-users/zsh-completions"
zplug "zsh-users/zsh-syntax-highlighting", defer:2
if [[ $OSTYPE == *darwin* ]]; then
zplug "plugins/osx", from:oh-my-zsh
zplug "plugins/pass", from:oh-my-zsh
fi
zplug "~/.zsh/themes", from:local, use:cheetah.zsh-theme, as:theme
[ -s "$HOME/.zsh.local" ] && source $HOME/.zsh.local
zplug check || zplug install
zplug load