These files are always sourced (never executed directly), so the #!/bin/bash shebang is inert and misleading. Drop it consistently across rc.d/*, profile.d/*, and aliases.d/*.
15 lines
305 B
Plaintext
15 lines
305 B
Plaintext
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
|
|
|
|
elif (command -v direnv &>/dev/null); then
|
|
# Hook direnv into your shell.
|
|
eval "$(direnv hook bash)"
|
|
|
|
fi
|