summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIbrahim Muftee <ibrahim@muftee.net>2024-10-03 17:48:52 -0500
committerIbrahim Muftee <ibrahim@muftee.net>2026-07-01 00:23:31 -0400
commitb554269c961c81f14c5cc10c6de03824a1ad8139 (patch)
tree900579da3a1a0aee2403f73237ac55b449e616bd
parent5bf3bee2b3a68066cdd1928a6e64a302fde0d6c8 (diff)
fix(zsh): source profile and env first
-rw-r--r--dot_zshrc.tmpl14
1 files 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 -}}