Support agnoster prompt

This commit is contained in:
David Tomaschik
2020-10-11 06:42:29 -07:00
parent d117ee6b2e
commit f3cb3607db
2 changed files with 177 additions and 3 deletions

View File

@@ -94,15 +94,13 @@ if [[ $- == *i* ]] ; then
source "$file"
done
# extra completions, prompt
fpath=(~/.zshrc.completions ~/.zshrc.d/matir_prompt $fpath)
fpath=(~/.zshrc.completions ~/.zshrc.d/matir_prompt ~/.zshrc.d/agnoster_prompt $fpath)
# Completion
zstyle ':compinstall' filename "${HOME}/.zshrc"
zstyle ':completion:*' users root ${USER}
# Modules after fpath
autoload -Uz compinit && compinit -i
autoload -Uz promptinit && promptinit
# Prompt
prompt matir
# Virtualenvwrapper
if test -f /usr/share/virtualenvwrapper/virtualenvwrapper_lazy.sh ; then
source /usr/share/virtualenvwrapper/virtualenvwrapper_lazy.sh
@@ -140,3 +138,6 @@ fi
# Load any local settings
if [ -e $HOME/.zshrc.local ] ; then source $HOME/.zshrc.local ; fi
# Set prompt based on local settings
prompt "${THEME:-matir}"