forked from colonelpanic/dotfiles
Switch from antigen to zgen
This commit is contained in:
parent
1c4ea43278
commit
b72094d69b
@ -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
18
dotfiles/lib/zsh/zgen.sh
Normal 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
|
Loading…
Reference in New Issue
Block a user