Sistemata configurazione Archlinux nel tentativo di essere compatibile con powerlevel10k - carico powerleve10k se è installato.

This commit is contained in:
Emiliano Vavassori 2023-04-29 15:49:20 +02:00
parent a2f42e35d1
commit 1f9a75232b

View File

@ -3,7 +3,11 @@ autoload -Uz promptinit vcs_info
promptinit
zstyle ':vcs_info:*' enable git svn
setopt prompt_subst # Prompting
[ ! -f /usr/share/zsh-theme-powerlevel10k/powerlevel10k.zsh-theme ] && source ${DOTFILES}/zsh/themes/gentoo.zsh-theme
if [[ -f /usr/share/zsh-theme-powerlevel10k/powerlevel10k.zsh-theme ]]; then
source /usr/share/zsh-theme-powerlevel10k/powerlevel10k.zsh-theme
else
source ${DOTFILES}/zsh/themes/gentoo.zsh-theme
fi
setopt correct # Auto correct mistakes
setopt extendedglob # allows regexp with *