changeset 666:c6b8132ce55f

fix order of loading zsh scripts
author zegervdv <zegervdv@me.com>
date Tue, 27 Sep 2022 20:19:49 +0200
parents a56cc75911b0
children 1da48e5c51cf
files .chezmoiscripts/run_onchange_after_20-install-asdf-plugins.sh.tmpl dot_zshrc
diffstat 2 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/.chezmoiscripts/run_onchange_after_20-install-asdf-plugins.sh.tmpl	Tue Sep 27 20:09:26 2022 +0200
+++ b/.chezmoiscripts/run_onchange_after_20-install-asdf-plugins.sh.tmpl	Tue Sep 27 20:19:49 2022 +0200
@@ -17,5 +17,6 @@
 asdf_plugin_add direnv
 
 asdf install
+asdf reshim
 
 {{ end -}}
--- a/dot_zshrc	Tue Sep 27 20:09:26 2022 +0200
+++ b/dot_zshrc	Tue Sep 27 20:19:49 2022 +0200
@@ -234,6 +234,9 @@
 
 export PS_FORMAT='pid,pgid,state,start_time,%cpu,command'
 
+[ -f ~/.zshrc.local ] && source ~/.zshrc.local
+
+# Must run after brew is loaded
 if command -v brew &> /dev/null
 then
   source $(brew --prefix asdf)/libexec/asdf.sh
@@ -244,9 +247,6 @@
   source "${XDG_CONFIG_HOME:-$HOME/.config}/asdf-direnv/zshrc"
 fi
 
-[ -f ~/.zshrc.local ] && source ~/.zshrc.local
-
-# Must run after brew is loaded
 export SUDO_EDITOR=$(which nvim)
 eval "$(direnv hook zsh)"