dotfiles/zsh/helpers/setup-antigen.zsh
2022-03-13 22:43:08 +00:00

23 lines
498 B
Bash

zsh_dir=${XDG_CONFIG_HOME:-$HOME/.config}/zsh
antigen_dir=${ADOTDIR:-$XDG_DATA_HOME/zsh/antigen}
antigen_bin="${ADOTDIR}/antigen.zsh"
# Import angigen if present, or prompt to install if missing
if [[ -f $antigen_bin ]]; then
source $antigen_bin
else
if read -q "choice?Would you like to install Antigen now? (y/N)"; then
echo
mkdir -p $antigen_dir
curl -L git.io/antigen > $antigen_bin
source $antigen_bin
fi
fi
# Set the ZSH prompt
antigen theme romkatv/powerlevel10k