feat: add direnv support
This commit is contained in:
parent
a67d6448e9
commit
554f8a4db8
24
profile.d/direnv
Normal file
24
profile.d/direnv
Normal file
@ -0,0 +1,24 @@
|
||||
#!/bin/bash
|
||||
|
||||
if ( which asdf &> /dev/null )
|
||||
then
|
||||
|
||||
if ( asdf which direnv &> /dev/null )
|
||||
then
|
||||
|
||||
# Hook direnv into your shell.
|
||||
eval "$(asdf exec direnv hook bash)"
|
||||
|
||||
# A shortcut for asdf managed direnv.
|
||||
direnv() { asdf exec direnv "$@"; }
|
||||
|
||||
return
|
||||
fi
|
||||
|
||||
elif ( which direnv &> /dev/null )
|
||||
then
|
||||
|
||||
# Hook direnv into your shell.
|
||||
eval "$(direnv hook bash)"
|
||||
|
||||
fi
|
Loading…
Reference in New Issue
Block a user