[zsh] Simplify shared config

This commit is contained in:
Fabian Ising
2024-10-13 08:41:25 +02:00
parent be42293f1c
commit 16496c1b9a
3 changed files with 7 additions and 1711 deletions

View File

@@ -60,7 +60,11 @@ ZLE_RPROMPT_INDENT=0
# To customize prompt, run `p10k configure` or edit ~/dotfiles/zsh/.p10k.zsh.
function load_p10k() {
[[ ! -f ~/dotfiles/zsh/.p10k.zsh ]] || source ~/dotfiles/zsh/.p10k.zsh
if zmodload zsh/terminfo && (( terminfo[colors] >= 256 )) && [[ ! -f ~/.zsh/.shared_config ]]; then
[[ ! -f ~/dotfiles/zsh/.p10k.zsh ]] || source ~/dotfiles/zsh/.p10k.zsh
else
[[ ! -f ~/dotfiles/zsh/.p10k_shared.zsh ]] || source ~/dotfiles/zsh/.p10k_shared.zsh
fi
}
load_p10k
export LANG="en_US.UTF-8"