After upgrading to osx Monterey and updating brew, the asdf command stopped working inside a tmux session. I'm only using asdf to manage Node.js and Elixir versions.
$ asdf
Unknown command: asdf
/usr/local/Cellar/asdf/0.9.0/libexec/bin/asdf: line 82: /usr/local/opt/asdf/lib/commands/command-help.bash: No such file or directory
When I run a tmux session, the asdf command produces the error above. However, the asdf command runs correctly when I don't use tmux.
When I run which asdf
from a tmux session, I should get a path to the asdf executable. Instead I get this:
$ which asdf
asdf () {
local command
command="$1"
if [ "$#" -gt 0 ]
then
shift
fi
case "$command" in
("shell") eval "$(asdf export-shell-version sh "$@")" ;;
(*) command asdf "$command" "$@" ;;
esac
}