feat: add direnv support

This commit is contained in:
Xavier Logerais 2021-05-02 00:26:45 +02:00
parent a67d6448e9
commit 554f8a4db8

24
profile.d/direnv Normal file
View 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