config-bash/rc.d/direnv

17 lines
318 B
Plaintext
Raw Normal View History

2021-05-02 00:26:45 +02:00
#!/bin/bash
if (asdf which direnv &>/dev/null); then
# Hook direnv into your shell.
eval "$(asdf exec direnv hook bash)"
2021-05-02 00:26:45 +02:00
# A shortcut for asdf managed direnv.
direnv() { asdf exec direnv "$@"; }
2021-05-02 00:26:45 +02:00
return
2021-05-02 00:26:45 +02:00
elif (command -v direnv &>/dev/null); then
# Hook direnv into your shell.
eval "$(direnv hook bash)"
2021-05-02 00:26:45 +02:00
fi