2021-05-02 00:26:45 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
2024-06-21 18:47:07 +02:00
|
|
|
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
|
|
|
|
2024-06-21 18:47:07 +02:00
|
|
|
# A shortcut for asdf managed direnv.
|
|
|
|
direnv() { asdf exec direnv "$@"; }
|
2021-05-02 00:26:45 +02:00
|
|
|
|
2024-06-21 18:47:07 +02:00
|
|
|
return
|
2021-05-02 00:26:45 +02:00
|
|
|
|
2024-06-21 18:47:07 +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
|