From b5af356cec93d27f688efdc32ce783c067444644 Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Tue, 2 Aug 2022 16:14:26 -0500 Subject: [PATCH] fix: defer direnv hook --- dots/.config/zsh/config/profile/profile/env.zsh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/dots/.config/zsh/config/profile/profile/env.zsh b/dots/.config/zsh/config/profile/profile/env.zsh index 78b34952..0d9231c4 100644 --- a/dots/.config/zsh/config/profile/profile/env.zsh +++ b/dots/.config/zsh/config/profile/profile/env.zsh @@ -8,12 +8,10 @@ export ZSH_HIGHLIGHT_MAXLENGTH=10000 export ZSH_AUTOSUGGEST_BUFFER_MAX_SIZE=2 export ZSH_AUTOSUGGEST_STRATEGY=(history completion) -### Direnv ### -eval "$(direnv hook zsh)" ### FZF ### function zvm_after_init() { - [[ -r "${HOME}/.config/fzf/fzf.zsh" ]] && source "${HOME}/.config/fzf/fzf.zsh" + [[ -r "${XDG_DATA_CONFIG}/fzf/fzf.zsh" ]] && source "${XDG_DATA_CONFIG}fzf/fzf.zsh" } export FZF_DEFAULT_COMMAND='fd --hidden --exclude .git --color=always' export FZF_DEFAULT_OPTS="--height=80% --layout=reverse --info=inline --border --margin=1 --ansi" @@ -89,6 +87,9 @@ export PATH="${PATH}:${CARGO_HOME}/bin" ## Dotnet ### export PATH="${PATH}:${XDG_DATA_HOME}/dotnet" +### Direnv ### +eval "$(direnv hook zsh)" + ### Terminal Specific ### # If using the kitty terminal we want to set our TERM var to be xterm as kitty will send # kitty-xterm which causes a fucking headache and a half due to ncurses not containing