diff --git a/dotfiles/lib/zsh/antigen.zsh b/dotfiles/lib/zsh/antigen.zsh deleted file mode 100644 index 28c34d13..00000000 --- a/dotfiles/lib/zsh/antigen.zsh +++ /dev/null @@ -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 diff --git a/dotfiles/lib/zsh/zgen.sh b/dotfiles/lib/zsh/zgen.sh new file mode 100644 index 00000000..00d16232 --- /dev/null +++ b/dotfiles/lib/zsh/zgen.sh @@ -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