From b554269c961c81f14c5cc10c6de03824a1ad8139 Mon Sep 17 00:00:00 2001 From: Ibrahim Muftee Date: Thu, 3 Oct 2024 17:48:52 -0500 Subject: fix(zsh): source profile and env first --- dot_zshrc.tmpl | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/dot_zshrc.tmpl b/dot_zshrc.tmpl index 4531bac..47802db 100644 --- a/dot_zshrc.tmpl +++ b/dot_zshrc.tmpl @@ -8,6 +8,12 @@ #{{- /* This file supports Go's text/template language. */ -}} +# Source the zprofile +source $HOME/.zprofile + +# Source zshenv +source $HOME/.zshenv + # Enable colors and change prompt: autoload -U colors && colors # Load colors # PS1="%B%{$fg[red]%}[%{$fg[yellow]%}%n%{$fg[green]%}@%{$fg[blue]%}%M %{$fg[magenta]%}%~%{$fg[red]%}]%{$reset_color%}$%b " @@ -134,16 +140,10 @@ alias cdc='$HOME/.local/share/chezmoi/' # Shortcut for sourcing this file alias zource='source $HOME/.zshrc' -# Source the zprofile -source $HOME/.zprofile - -# Source zshenv -source $HOME/.zshenv - # Load Starship eval "$(starship init zsh)" -# Load zsh syntax highlighting {{- if eq .chezmoi.os "darwin" }} +# Load zsh syntax highlighting source /opt/homebrew/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh {{ end -}} -- cgit v1.2.3