1
0
Fork 0
mirror of https://github.com/MillironX/dotfiles.git synced 2024-12-03 09:49:55 +00:00

refactor: Move direnv hooks to .hooks

This commit is contained in:
Thomas A. Christensen II 2023-04-15 18:03:24 -05:00
parent 85b05d50f0
commit ba3dfc5f52
Signed by: millironx
GPG key ID: 09335146883990B9
3 changed files with 4 additions and 12 deletions

View file

@ -17,6 +17,10 @@ if [ -f "$HOME/miniconda3/etc/profile.d/mamba.sh" ]; then
fi
# <<< conda initialize <<<
{{- if lookPath "direnv" }}
eval "$(direnv hook $(basename $0))"
{{- end }}
if [ -f $HOME/.ion/bin/ion ]; then
export PATH="$HOME/.ion/bin/ion:$PATH"
export FPATH="$HOME/.ion/completions:$FPATH"

View file

@ -11,12 +11,6 @@ source $HOME/.hooks
# User specific aliases and functions
source $HOME/.aliases
# >>> direnv initalize >>>
if [ $(command -v direnv) ]; then
eval "$(direnv hook bash)"
fi
# <<< direnv initalize <<<
source $HOME/.envvar
if [ $(command -v env_parallel.bash) ]; then

View file

@ -54,12 +54,6 @@ COMPLETION_WAITING_DOTS="true"
source $HOME/.hooks
# >>> direnv initalize >>>
if [ $(command -v direnv) ]; then
eval "$(direnv hook zsh)"
fi
# <<< direnv initalize <<<
# Tell Antigen that you're done
antigen apply