asdf/lib/asdf.fish

16 lines
396 B
Fish
Raw Normal View History

# Add function wrapper so we can export variables
function asdf
set command $argv[1]
set -e argv[1]
switch "$command"
case "shell"
# source commands that need to export variables
2021-05-21 09:03:06 -07:00
. (asdf export-shell-version fish $argv | psub)
case '*'
# forward other commands to asdf script
command asdf "$command" $argv
end
end