comparison dot_zshrc @ 666:c6b8132ce55f

fix order of loading zsh scripts
author zegervdv <zegervdv@me.com>
date Tue, 27 Sep 2022 20:19:49 +0200
parents a061086e1172
children 1da48e5c51cf
comparison
equal deleted inserted replaced
665:a56cc75911b0 666:c6b8132ce55f
232 export RIPGREP_CONFIG_PATH=$HOME/.config/ripgrep/ripgreprc 232 export RIPGREP_CONFIG_PATH=$HOME/.config/ripgrep/ripgreprc
233 export BAT_CONFIG_PATH=$HOME/.config/bat/config 233 export BAT_CONFIG_PATH=$HOME/.config/bat/config
234 234
235 export PS_FORMAT='pid,pgid,state,start_time,%cpu,command' 235 export PS_FORMAT='pid,pgid,state,start_time,%cpu,command'
236 236
237 [ -f ~/.zshrc.local ] && source ~/.zshrc.local
238
239 # Must run after brew is loaded
237 if command -v brew &> /dev/null 240 if command -v brew &> /dev/null
238 then 241 then
239 source $(brew --prefix asdf)/libexec/asdf.sh 242 source $(brew --prefix asdf)/libexec/asdf.sh
240 fi 243 fi
241 244
242 if [ -f "${XDG_CONFIG_HOME:-$HOME/.config}/asdf-direnv/zshrc" ] 245 if [ -f "${XDG_CONFIG_HOME:-$HOME/.config}/asdf-direnv/zshrc" ]
243 then 246 then
244 source "${XDG_CONFIG_HOME:-$HOME/.config}/asdf-direnv/zshrc" 247 source "${XDG_CONFIG_HOME:-$HOME/.config}/asdf-direnv/zshrc"
245 fi 248 fi
246 249
247 [ -f ~/.zshrc.local ] && source ~/.zshrc.local
248
249 # Must run after brew is loaded
250 export SUDO_EDITOR=$(which nvim) 250 export SUDO_EDITOR=$(which nvim)
251 eval "$(direnv hook zsh)" 251 eval "$(direnv hook zsh)"
252 252
253 zsh-defer source ~/.zsh/zsh-history-substring-search.zsh 253 zsh-defer source ~/.zsh/zsh-history-substring-search.zsh
254 export HISTORY_SUBSTRING_SEARCH_HIGHLIGHT_FOUND='bg=cyan,fg=white' 254 export HISTORY_SUBSTRING_SEARCH_HIGHLIGHT_FOUND='bg=cyan,fg=white'