[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

@@ -9,7 +9,8 @@
if [[ $1 == "shared" ]]; then
ln -Tsfv $PWD/zsh $HOME/.zsh
ln -Tsfv ~/.zsh/.zshrc_shared $HOME/.zshrc
ln -Tsfv ~/.zsh/.zshrc $HOME/.zshrc
touch ~/.zsh/.shared_config
ln -Tsfv $PWD/tmux $HOME/.tmux
ln -Tsfv ~/.tmux/.tmux.conf $HOME/.tmux.conf
mkdir -p $HOME/.config

File diff suppressed because it is too large Load Diff

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() {
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"