mirror of
https://github.com/asdf-vm/asdf.git
synced 2024-11-15 01:28:17 -07:00
19 lines
385 B
Bash
19 lines
385 B
Bash
# The asdf function is a wrapper so we can export variables
|
|
asdf() {
|
|
local command
|
|
command="$1"
|
|
if [ "$#" -gt 0 ]; then
|
|
shift
|
|
fi
|
|
|
|
case "$command" in
|
|
"shell")
|
|
# commands that need to export variables
|
|
command e"val" "$(asdf export-shell-version sh "$@")";;
|
|
*)
|
|
# forward other commands to asdf script
|
|
command asdf "$command" "$@";;
|
|
|
|
esac
|
|
}
|