home-profile: fix zsh propt if no env var
This commit is contained in:
parent
62c24e24b8
commit
61ca7ef3bb
|
@ -92,15 +92,17 @@ in
|
||||||
${makeIfVar "__MATERUS_HM_ZSH_PROMPT" "p10k" ''
|
${makeIfVar "__MATERUS_HM_ZSH_PROMPT" "p10k" ''
|
||||||
if [[ -r "''${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-''${(%):-%n}.zsh" ]]; then
|
if [[ -r "''${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-''${(%):-%n}.zsh" ]]; then
|
||||||
source "''${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-''${(%):-%n}.zsh"
|
source "''${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-''${(%):-%n}.zsh"
|
||||||
fi''
|
fi
|
||||||
|
if [[ -f "${extraPlugins.powerlevel10k.fullPath}" ]]; then
|
||||||
|
source "${extraPlugins.powerlevel10k.fullPath}"
|
||||||
|
fi
|
||||||
|
''
|
||||||
}
|
}
|
||||||
if zmodload zsh/terminfo && (( "$terminfo[colors]" >= "256" )); then
|
if zmodload zsh/terminfo && (( "$terminfo[colors]" >= "256" )); then
|
||||||
__MATERUS_HM_ZSH_256COLORS="''${__MATERUS_HM_ZSH_256COLORS:-1}"; else
|
__MATERUS_HM_ZSH_256COLORS="''${__MATERUS_HM_ZSH_256COLORS:-1}"; else
|
||||||
__MATERUS_HM_ZSH_256COLORS="''${__MATERUS_HM_ZSH_256COLORS:-0}";
|
__MATERUS_HM_ZSH_256COLORS="''${__MATERUS_HM_ZSH_256COLORS:-0}";
|
||||||
fi
|
fi
|
||||||
if [[ -f "${extraPlugins.powerlevel10k.fullPath}" ]]; then
|
|
||||||
source "${extraPlugins.powerlevel10k.fullPath}"
|
|
||||||
fi
|
|
||||||
if [[ -f "${extraPlugins.sudo.fullPath}" ]]; then
|
if [[ -f "${extraPlugins.sudo.fullPath}" ]]; then
|
||||||
source "${extraPlugins.sudo.fullPath}"
|
source "${extraPlugins.sudo.fullPath}"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue