mirror of
https://github.com/asdf-vm/asdf.git
synced 2024-11-15 09:38:16 -07:00
16 lines
401 B
Fish
16 lines
401 B
Fish
|
|
# 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
|
|
source (asdf export-shell-version fish $argv | psub)
|
|
case '*'
|
|
# forward other commands to asdf script
|
|
command asdf "$command" $argv
|
|
end
|
|
end
|