Files
dotfiles/home/dot_zprofile.tmpl
T

26 lines
682 B
Cheetah

{{ if eq .chezmoi.os "darwin" -}}
# Initialize Homebrew on Apple Silicon or Intel Macs.
if [[ -x /opt/homebrew/bin/brew ]]; then
eval "$(/opt/homebrew/bin/brew shellenv)"
elif [[ -x /usr/local/bin/brew ]]; then
eval "$(/usr/local/bin/brew shellenv)"
fi
{{ else if eq .chezmoi.os "linux" -}}
if [[ -f "$HOME/.config/scripts/setup.sh" ]]; then
sh "$HOME/.config/scripts/setup.sh" -nr
fi
{{ end }}
# Load user settings from config file.
if [[ -f "$HOME/.config/settings.conf" ]]; then
source "$HOME/.config/settings.conf"
fi
{{ if eq .chezmoi.os "linux" -}}
if [[ $computer == 'w530' ]]; then
if [[ ! $DISPLAY && $XDG_VTNR -eq 1 ]]; then
exec startx
fi
fi
{{ end -}}