fork/fish-shell
git clone https://git.julia.blue/fork/fish-shell
9367d4ff7
master
1set -l cmds list store restore stop-all start stop restart switch-to status enable disable reenable is-enabled edit 2 3function __fish_netctl_get_profiles 4command netctl list| string trim -l -c' *'\t 5end 6 7complete -f -c netctl -l help -d'Display help' 8complete -f -c netctl -l version -d'Display version' 9complete -f -c netctl -n"not __fish_seen_subcommand_from $cmds " -a list -d'List available profiles' 10complete -f -c netctl -n"not __fish_seen_subcommand_from $cmds " -a store -d'Save which profiles are active' 11complete -f -c netctl -n"not __fish_seen_subcommand_from $cmds " -a restore -d'Load saved profiles' 12complete -f -c netctl -n"not __fish_seen_subcommand_from $cmds " -a stop-all -d'Stops all profiles' 13complete -f -c netctl -n"not __fish_seen_subcommand_from $cmds " -a start -d'Start a profile' 14complete -f -c netctl -n"not __fish_seen_subcommand_from $cmds " -a stop -d'Stop a profile' 15complete -f -c netctl -n"not __fish_seen_subcommand_from $cmds " -a restart -d'Restart a profile' 16complete -f -c netctl -n"not __fish_seen_subcommand_from $cmds " -a switch-to -d'Switch to a profile' 17complete -f -c netctl -n"not __fish_seen_subcommand_from $cmds " -a status -d'Show runtime status of a profile' 18complete -f -c netctl -n"not __fish_seen_subcommand_from $cmds " -a enable -d'Enable the systemd unit for a profile' 19complete -f -c netctl -n"not __fish_seen_subcommand_from $cmds " -a disable -d'Disable the systemd unit for a profile' 20complete -f -c netctl -n"not __fish_seen_subcommand_from $cmds " -a reenable -d'Reenable the systemd unit for a profile' 21complete -f -c netctl -n"not __fish_seen_subcommand_from $cmds " -a is-enabled -d'Check whether the unit is enabled' 22complete -f -c netctl -n"not __fish_seen_subcommand_from $cmds " -a edit -d'Open the specified profile in an editor' 23complete -f -c netctl -n"__fish_seen_subcommand_from start stop restart switch-to status enable disable reenable is-enabled edit" -a'(__fish_netctl_get_profiles)' -d Profile