27 lines
761 B
Bash
27 lines
761 B
Bash
# Enable p10k instant prompt
|
|
[[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]] &&
|
|
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
|
|
|
|
# Load the completion system
|
|
autoload -Uz compinit && compinit
|
|
|
|
# Source *.zsh files
|
|
for zfile in $ZDOTDIR/*.zsh; do
|
|
source $zfile
|
|
done
|
|
|
|
# Clone Antidote if necessary
|
|
[[ -e $ZDOTDIR/.antidote ]] || git clone https://github.com/mattmc3/antidote.git $ZDOTDIR/.antidote
|
|
|
|
# Source Antidote
|
|
source $ZDOTDIR/.antidote/antidote.zsh
|
|
|
|
# Generate and source plugins from $ZDOTDIR/.zsh_plugins.txt
|
|
antidote load
|
|
|
|
# Set p10k prompt
|
|
autoload -Uz promptinit && promptinit && prompt powerlevel10k
|
|
|
|
# Load p10k configuration
|
|
[[ -f $ZDOTDIR/.p10k.zsh ]] && source $ZDOTDIR/.p10k.zsh
|