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:
parent
85b05d50f0
commit
ba3dfc5f52
3 changed files with 4 additions and 12 deletions
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue