fix: Correction gestion direnv lorsqu'il n'est pas installé via asdf
This commit is contained in:
parent
2140f57862
commit
640df9986c
12
rc.d/direnv
12
rc.d/direnv
@ -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)"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user