[zsh] fix direnv hook

This commit is contained in:
odrling 2024-03-03 00:19:25 +01:00
parent 77e20b355e
commit cd3b6267c9
No known key found for this signature in database
GPG key ID: E24CA7508C27AF5B

2
.zshrc
View file

@ -29,7 +29,7 @@ if command -v fzf >/dev/null; then
bindkey '^I' $fzf_default_completion
fi
(( ${+commands[direnv]} )) && emulate zsh -c "$(direnv export zsh)"
(( ${+commands[direnv]} )) && emulate zsh -c "$(direnv hook zsh)"
function osc7-pwd() {
emulate -L zsh # also sets localoptions for us