fix: Correction gestion direnv lorsqu'il n'est pas installé via asdf

This commit is contained in:
Xavier Logerais 2024-06-21 16:47:07 +00:00
parent 2140f57862
commit 640df9986c

View File

@ -1,11 +1,6 @@
#!/bin/bash
if ( which asdf &> /dev/null )
then
if ( asdf which direnv &> /dev/null )
then
if (asdf which direnv &>/dev/null); then
# Hook direnv into your shell.
eval "$(asdf exec direnv hook bash)"
@ -13,11 +8,8 @@ then
direnv() { asdf exec direnv "$@"; }
return
fi
elif ( which direnv &> /dev/null )
then
elif (command -v direnv &>/dev/null); then
# Hook direnv into your shell.
eval "$(direnv hook bash)"