summaryrefslogtreecommitdiff
path: root/shell-completion/zsh/_bootctl
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2017-05-10 17:38:59 -0400
committerLuke Shumaker <lukeshu@lukeshu.com>2017-05-10 17:38:59 -0400
commit7bd29679e6dd590bddfa18401749fad5c8f5d46b (patch)
treeca8e39d88032fc2458551743b38c4c3f3bde1374 /shell-completion/zsh/_bootctl
parent28420561826df73fff80c4a3c808aa9f1d418730 (diff)
./tools/notsd-move
Diffstat (limited to 'shell-completion/zsh/_bootctl')
-rw-r--r--shell-completion/zsh/_bootctl30
1 files changed, 0 insertions, 30 deletions
diff --git a/shell-completion/zsh/_bootctl b/shell-completion/zsh/_bootctl
deleted file mode 100644
index 0e1b0a5562..0000000000
--- a/shell-completion/zsh/_bootctl
+++ /dev/null
@@ -1,30 +0,0 @@
-#compdef bootctl
-
-(( $+functions[_bootctl_command] )) || _bootctl_command()
-{
- local -a _bootctl_cmds
- _bootctl_cmds=(
- "status:Show status of installed systemd-boot and EFI variables"
- "install:Install systemd-boot to the ESP and EFI variables"
- "update:Update systemd-boot in the ESP and EFI variables"
- "remove:Remove systemd-boot from the ESP and EFI variables"
- )
- if (( CURRENT == 1 )); then
- _describe -t commands 'bootctl command' _bootctl_cmds || compadd "$@"
- else
- local curcontext="$curcontext"
- cmd="${${_bootctl_cmds[(r)$words[1]:*]%%:*}}"
- if (( $+functions[_bootctl_$cmd] )); then
- _bootctl_$cmd
- else
- _message "no more options"
- fi
- fi
-}
-
-_arguments \
- {-h,--help}'[Prints a short help text and exits.]' \
- '--version[Prints a short version string and exits.]' \
- '--path=[Path to the EFI System Partition (ESP)]:path:_directories' \
- '--no-variables[Do not touch EFI variables]' \
- '*::bootctl command:_bootctl_command'