From 24e09bc0840ec90bf348dfec938bff56eb27306a Mon Sep 17 00:00:00 2001 From: "Thomas A. Christensen II" <25492070+MillironX@users.noreply.github.com> Date: Sat, 15 Apr 2023 19:43:31 -0500 Subject: [PATCH] fix: Only evaluate distro if os is linux --- dot_tmux.conf.tmpl | 2 ++ executable_dot_zshrc.tmpl | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/dot_tmux.conf.tmpl b/dot_tmux.conf.tmpl index 4f55050..28546d2 100644 --- a/dot_tmux.conf.tmpl +++ b/dot_tmux.conf.tmpl @@ -1,6 +1,8 @@ set -g default-terminal "tmux-256color" +{{- if eq .chezmoi.os "linux" }} {{ if (eq .chezmoi.osRelease.id "debian") }} source "/usr/share/powerline/bindings/tmux/powerline.conf" {{ else }} source "/usr/share/tmux/powerline.conf" {{ end }} +{{- end }} diff --git a/executable_dot_zshrc.tmpl b/executable_dot_zshrc.tmpl index 4bf3d42..4529d6f 100644 --- a/executable_dot_zshrc.tmpl +++ b/executable_dot_zshrc.tmpl @@ -1,3 +1,4 @@ +{{- if eq .chezmoi.os "linux" }} {{- if or (eq .machinetype "workstation") (eq .chezmoi.osRelease.id "fedora") @@ -10,6 +11,7 @@ if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]] source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" fi {{- end }} +{{- end }} # User specific environment if ! [[ "$PATH" =~ "$HOME/.local/bin:$HOME/bin:" ]] @@ -65,6 +67,7 @@ source $HOME/.envvar alias zshconfig="$EDITOR ~/.zshrc" source $HOME/.aliases +{{- if eq .chezmoi.os "linux" }} {{ if or (eq .machinetype "workstation") (eq .chezmoi.osRelease.id "fedora") @@ -73,3 +76,4 @@ source $HOME/.aliases # To customize prompt, run `p10k configure` or edit ~/.p10k.zsh. [[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh {{- end }} +{{- end }}