dotfiles/zsh/.config/zsh/.zshrc
2022-03-12 18:06:34 +01:00

28 lines
815 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"
# Some variables
ZSH_HIGHLIGHT_HIGHLIGHTERS=(main brackets pattern regexp root line)
ZLE_RPROMPT_INDENT=0
# Load the .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 --depth=1 $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