1
0
mirror of https://github.com/frebib/dotfiles.git synced 2024-06-14 12:57:23 +00:00

Install antigen if it's not installed

This commit is contained in:
Joe Groocock 2017-11-15 23:14:30 +00:00
parent 7bb0e8e1c7
commit 21fc75a245
Signed by: frebib
GPG Key ID: E0B16BEACFBB6A86

11
.zshrc
View File

@ -24,7 +24,16 @@ setopt sharehistory histignorealldups histignorespace histreduceblanks
setopt pathdirs autocd autopushd extendedglob alwaystoend dvorak setopt pathdirs autocd autopushd extendedglob alwaystoend dvorak
# Load antigen & plugins # Load antigen & plugins
source "$ZSH_DIR/antigen.zsh" antigen_src="$ZSH_DIR/antigen.zsh"
if [ ! -f "$antigen_src" ]; then
if which curl &>/dev/null; then
getcmd='curl -L'
else
getcmd='wget -qO-'
fi
eval $getcmd git.io/antigen > "$antigen_src"
fi
source "$antigen_src"
antigen bundle sudo antigen bundle sudo
antigen bundle zsh-users/zsh-completions antigen bundle zsh-users/zsh-completions