Switch from antigen to zgen

This commit is contained in:
Ivan Malison 2016-09-06 12:52:31 -07:00
parent 1c4ea43278
commit b72094d69b
No known key found for this signature in database
GPG Key ID: 62530EFBE99DC2F8
2 changed files with 18 additions and 16 deletions

View File

@ -1,16 +0,0 @@
export ANTIGEN_PATH="$HOME/.antigen.zsh"
function upgrade_antigen {
curl -L https://raw.githubusercontent.com/zsh-users/antigen/master/antigen.zsh > $ANTIGEN_PATH
}
test -e $ANTIGEN_PATH || upgrade_antigen
source $ANTIGEN_PATH
antigen bundle pip
antigen bundle zsh-users/zsh-syntax-highlighting
antigen bundle git
antigen bundle kennethreitz/autoenv
antigen apply

18
dotfiles/lib/zsh/zgen.sh Normal file
View File

@ -0,0 +1,18 @@
export ZGEN_PATH="$HOME/.zgen"
test -e $ZGEN_PATH || git clone https://github.com/tarjoilija/zgen.git $ZGEN_PATH
source "$ZGEN_PATH/zgen.zsh"
# if the init scipt doesn't exist
if ! zgen saved; then
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 load zsh-users/zsh-syntax-highlighting
zgen load kennethreitz/autoenv
# generate the init script from plugins above
zgen save
fi