fork/fish-shell
git clone https://git.julia.blue/fork/fish-shell
20d91c6be
master
1function __fish_print_alternatives_names -d"Get the names of link groups in the alternatives system" 2alternatives --list| cut -f1 | string trim 3end 4 5# common options 6 7complete -c alternatives -l verbose -d"Generate more comments about what alternatives is doing" 8complete -c alternatives -l help -d"Give some usage information" 9complete -c alternatives -l version -d"Tell which version of alternatives this is" 10complete -c alternatives -l keep-missing -d"If new variant doesn't provide some files, keep previous links" 11complete -c alternatives -l altdir -xa"(__fish_complete_directories)" -d"Specifies the alternatives directory" 12complete -c alternatives -l admindir -xa"(__fish_complete_directories)" -d"Specifies the administrative directory" 13 14# actions 15 16complete -c alternatives -l install -r -d"Add a group of alternatives to the system" 17complete -c alternatives -l slave -n"__fish_contains_opt install" -r -d"Add a slave link to the new group" 18complete -c alternatives -l initscript -n"__fish_contains_opt install" -F -d"Add an initscript for the new group" 19complete -c alternatives -l family -n"__fish_contains_opt install" -x -d"Set a family for the new group" 20 21complete -c alternatives -l remove -ra"(__fish_print_alternatives_names)" -d"Remove an alternative and all of its associated slave links" 22complete -c alternatives -l set -ra"(__fish_print_alternatives_names)" -d"Set link group to given path" 23complete -c alternatives -l config -xa"(__fish_print_alternatives_names)" -d"Open menu to configure link group" 24complete -c alternatives -l auto -xa"(__fish_print_alternatives_names)" -d"Switch the master symlink name to automatic mode" 25complete -c alternatives -l display -xa"(__fish_print_alternatives_names)" -d"Display information about the link group" 26complete -c alternatives -l list -f -d"Display information about all link groups" 27complete -c alternatives -l remove-all -xa"(__fish_print_alternatives_names)" -d"Remove the whole link group name" 28complete -c alternatives -l add-slave -ra"(__fish_print_alternatives_names)" -d"Add a slave link to an existing alternative" 29complete -c alternatives -l remove-slave -ra"(__fish_print_alternatives_names)" -d"Remove slave from an existing alternative"