fork/fish-shell
git clone https://git.julia.blue/fork/fish-shell
d862e7bf2
master
1set -l commands status install update remove is-installed random-seed systemd-efi-options reboot-to-firmware list set-default set-oneshot set-timeout set-timeout-oneshot 2 3# Execute `bootctl list` and return entries 4function __bootctl_entries 5if not type -q jq 6return 1 7end 8 9bootctl list --json short| jq '.[] | "\(.id)\t\(.showTitle)"' --raw-output 10end 11 12complete -c bootctl -f 13complete -c bootctl -n"not __fish_seen_subcommand_from $commands " -a status -d'Show status of EFI variables' 14complete -c bootctl -n"not __fish_seen_subcommand_from $commands " -a install -d'Install systemd-boot' 15complete -c bootctl -n"not __fish_seen_subcommand_from $commands " -a update -d'Update systemd-boot' 16complete -c bootctl -n"not __fish_seen_subcommand_from $commands " -a remove -d'Remove systemd-boot' 17complete -c bootctl -n"not __fish_seen_subcommand_from $commands " -a is-installed -d'Test whether systemd-boot is installed' 18complete -c bootctl -n"not __fish_seen_subcommand_from $commands " -a random-seed -d'Initialize random seed' 19complete -c bootctl -n"not __fish_seen_subcommand_from $commands " -a systemd-efi-options -d'Query or set system options string' 20complete -c bootctl -n"not __fish_seen_subcommand_from $commands " -a reboot-to-firmware -d'Query or set reboot-to-firmware EFI flag' 21complete -c bootctl -n"__fish_seen_subcommand_from reboot-to-firmware" -a'true false' 22complete -c bootctl -n"not __fish_seen_subcommand_from $commands " -a list -d'List boot loader entries' 23complete -c bootctl -n"not __fish_seen_subcommand_from $commands " -a set-default -d'Set default boot loader entry' 24complete -c bootctl -n"not __fish_seen_subcommand_from $commands " -a set-oneshot -d'Set default boot loader entry (Once)' 25complete -c bootctl -n"__fish_seen_subcommand_from set-default set-oneshot" -x -a'(__bootctl_entries)' 26complete -c bootctl -n"not __fish_seen_subcommand_from $commands " -a set-timeout -d'Set default boot loader timeout' 27complete -c bootctl -n"not __fish_seen_subcommand_from $commands " -a set-timeout-oneshot -d'Set default boot loader timeout (Once)' 28 29complete -c bootctl -s h -l help -d'Show this help' 30complete -c bootctl -l version -d'Print version' 31complete -c bootctl -l esp-path -r -d'Path to the EFI System Partition (ESP)' 32complete -c bootctl -l boot-path -r -d'Path to the $BOOT partition' 33complete -c bootctl -s p -l print-esp-path -d'Print path to the EFI System Partition' 34complete -c bootctl -s x -l print-boot-path -d'Print path to the $BOOT partition' 35complete -c bootctl -l no-variables -d'Do not touch EFI variables' 36complete -c bootctl -l no-pager -d'Do not pipe output into a pager' 37complete -c bootctl -l graceful -d'Do not print fail'