1 2 3 4 5 6 7 8 9 10 11 12 13 14
function __fish_repo_use_internal if test $argv[1] -eq 0 echo $argv[2] | source else printf "$argv[2]\n" end end function work set -l script (repo work $argv) __fish_repo_use_internal $status $script end complete -c work -f -xa "(repo list)"