home-profile: zsh move colors check from zshenv
This commit is contained in:
parent
6da0978779
commit
305c891d7d
|
@ -71,11 +71,6 @@ in
|
||||||
|
|
||||||
|
|
||||||
envExtra = ''
|
envExtra = ''
|
||||||
|
|
||||||
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:-0}";
|
|
||||||
fi
|
|
||||||
${makeEnv "__MATERUS_HM_ZSH" "1"}
|
${makeEnv "__MATERUS_HM_ZSH" "1"}
|
||||||
${makeEnv "__MATERUS_HM_ZSH_PROMPT" cfg.prompt}
|
${makeEnv "__MATERUS_HM_ZSH_PROMPT" cfg.prompt}
|
||||||
${makeEnv "__MATERUS_HM_ZSH_PRIVATE" "0"}
|
${makeEnv "__MATERUS_HM_ZSH_PRIVATE" "0"}
|
||||||
|
@ -83,10 +78,15 @@ in
|
||||||
|
|
||||||
|
|
||||||
initExtraFirst = ''
|
initExtraFirst = ''
|
||||||
|
|
||||||
${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 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:-0}";
|
||||||
|
fi
|
||||||
if [[ -f "${extraPlugins.powerlevel10k.fullPath}" ]]; then
|
if [[ -f "${extraPlugins.powerlevel10k.fullPath}" ]]; then
|
||||||
source "${extraPlugins.powerlevel10k.fullPath}"
|
source "${extraPlugins.powerlevel10k.fullPath}"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue