mirror of
https://github.com/MillironX/dotfiles.git
synced 2024-11-15 03:13:10 +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
|
fi
|
||||||
# <<< conda initialize <<<
|
# <<< conda initialize <<<
|
||||||
|
|
||||||
|
{{- if lookPath "direnv" }}
|
||||||
|
eval "$(direnv hook $(basename $0))"
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
if [ -f $HOME/.ion/bin/ion ]; then
|
if [ -f $HOME/.ion/bin/ion ]; then
|
||||||
export PATH="$HOME/.ion/bin/ion:$PATH"
|
export PATH="$HOME/.ion/bin/ion:$PATH"
|
||||||
export FPATH="$HOME/.ion/completions:$FPATH"
|
export FPATH="$HOME/.ion/completions:$FPATH"
|
||||||
|
|
|
@ -11,12 +11,6 @@ source $HOME/.hooks
|
||||||
# User specific aliases and functions
|
# User specific aliases and functions
|
||||||
source $HOME/.aliases
|
source $HOME/.aliases
|
||||||
|
|
||||||
# >>> direnv initalize >>>
|
|
||||||
if [ $(command -v direnv) ]; then
|
|
||||||
eval "$(direnv hook bash)"
|
|
||||||
fi
|
|
||||||
# <<< direnv initalize <<<
|
|
||||||
|
|
||||||
source $HOME/.envvar
|
source $HOME/.envvar
|
||||||
|
|
||||||
if [ $(command -v env_parallel.bash) ]; then
|
if [ $(command -v env_parallel.bash) ]; then
|
||||||
|
|
|
@ -54,12 +54,6 @@ COMPLETION_WAITING_DOTS="true"
|
||||||
|
|
||||||
source $HOME/.hooks
|
source $HOME/.hooks
|
||||||
|
|
||||||
# >>> direnv initalize >>>
|
|
||||||
if [ $(command -v direnv) ]; then
|
|
||||||
eval "$(direnv hook zsh)"
|
|
||||||
fi
|
|
||||||
# <<< direnv initalize <<<
|
|
||||||
|
|
||||||
# Tell Antigen that you're done
|
# Tell Antigen that you're done
|
||||||
antigen apply
|
antigen apply
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue