From d79b355adc64f7f1429e71d0b5c7d119b41661cc Mon Sep 17 00:00:00 2001 From: Florian Beisel Date: Wed, 5 Jun 2024 11:08:00 +0200 Subject: [PATCH] Change attributes of .zshrc --- dot_zshrc => dot_zshrc.tmpl | 4 ++++ 1 file changed, 4 insertions(+) rename dot_zshrc => dot_zshrc.tmpl (96%) diff --git a/dot_zshrc b/dot_zshrc.tmpl similarity index 96% rename from dot_zshrc rename to dot_zshrc.tmpl index a18edf8..b3cdfc8 100644 --- a/dot_zshrc +++ b/dot_zshrc.tmpl @@ -5,8 +5,10 @@ if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]] source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" fi +{{ if eq .chezmoi.os "darwin" -}} # Add brew shell completions FPATH="$(brew --prefix)/share/zsh/site-functions:${FPATH}" +{{ end -}} # add thefuck alias eval $(thefuck --alias) @@ -63,5 +65,7 @@ export NODE_OPTIONS="--no-deprecation" # To customize prompt, run `p10k configure` or edit ~/.p10k.zsh. [[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh +{{ if eq .chezmoi.os "darwin" -}} [ -f /opt/homebrew/etc/profile.d/autojump.sh ] && . /opt/homebrew/etc/profile.d/autojump.sh +{{ end -}}