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:
parent
7bb0e8e1c7
commit
21fc75a245
11
.zshrc
11
.zshrc
@ -24,7 +24,16 @@ setopt sharehistory histignorealldups histignorespace histreduceblanks
|
||||
setopt pathdirs autocd autopushd extendedglob alwaystoend dvorak
|
||||
|
||||
# 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 zsh-users/zsh-completions
|
||||
|
Loading…
Reference in New Issue
Block a user