From 1f9a75232bdd7a3151ab97fbd98d71362a2a3673 Mon Sep 17 00:00:00 2001 From: Emiliano Vavassori Date: Sat, 29 Apr 2023 15:49:20 +0200 Subject: [PATCH] =?UTF-8?q?Sistemata=20configurazione=20Archlinux=20nel=20?= =?UTF-8?q?tentativo=20di=20essere=20compatibile=20con=20powerlevel10k=20-?= =?UTF-8?q?=20carico=20powerleve10k=20se=20=C3=A8=20installato.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- zsh/distro/archlinux.base.zsh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/zsh/distro/archlinux.base.zsh b/zsh/distro/archlinux.base.zsh index 0e575f6..d312d78 100644 --- a/zsh/distro/archlinux.base.zsh +++ b/zsh/distro/archlinux.base.zsh @@ -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 *