|
Zbigniew Jędrzejewski-Szmek |
436654 |
From 4ee8c1c46cdb745db3e62dfc8e945dc73427ba04 Mon Sep 17 00:00:00 2001
|
|
Zbigniew Jędrzejewski-Szmek |
436654 |
From: Ronny Chevalier <chevalier.ronny@gmail.com>
|
|
Zbigniew Jędrzejewski-Szmek |
436654 |
Date: Sun, 24 May 2015 13:25:52 +0200
|
|
Zbigniew Jędrzejewski-Szmek |
436654 |
Subject: [PATCH] zsh-completion: update bootctl
|
|
Zbigniew Jędrzejewski-Szmek |
436654 |
|
|
Zbigniew Jędrzejewski-Szmek |
436654 |
(cherry picked from commit da090dfd0b6a86694084ebc27645ead3f25ef0b6)
|
|
Zbigniew Jędrzejewski-Szmek |
436654 |
---
|
|
Zbigniew Jędrzejewski-Szmek |
436654 |
shell-completion/zsh/_bootctl | 7 ++++++-
|
|
Zbigniew Jędrzejewski-Szmek |
436654 |
1 file changed, 6 insertions(+), 1 deletion(-)
|
|
Zbigniew Jędrzejewski-Szmek |
436654 |
|
|
Zbigniew Jędrzejewski-Szmek |
436654 |
diff --git a/shell-completion/zsh/_bootctl b/shell-completion/zsh/_bootctl
|
|
Zbigniew Jędrzejewski-Szmek |
436654 |
index 7d2453cc2c..ce776c052f 100644
|
|
Zbigniew Jędrzejewski-Szmek |
436654 |
--- a/shell-completion/zsh/_bootctl
|
|
Zbigniew Jędrzejewski-Szmek |
436654 |
+++ b/shell-completion/zsh/_bootctl
|
|
Zbigniew Jędrzejewski-Szmek |
436654 |
@@ -4,7 +4,10 @@
|
|
Zbigniew Jędrzejewski-Szmek |
436654 |
{
|
|
Zbigniew Jędrzejewski-Szmek |
436654 |
local -a _bootctl_cmds
|
|
Zbigniew Jędrzejewski-Szmek |
436654 |
_bootctl_cmds=(
|
|
Zbigniew Jędrzejewski-Szmek |
436654 |
- "status:Show current firmware and boot settings"
|
|
Zbigniew Jędrzejewski-Szmek |
436654 |
+ "status:Show status of installed systemd-boot and EFI variables"
|
|
Zbigniew Jędrzejewski-Szmek |
436654 |
+ "instal:Install systemd-boot to the ESP and EFI variables"
|
|
Zbigniew Jędrzejewski-Szmek |
436654 |
+ "update:Update systemd-boot in the ESP and EFI variables"
|
|
Zbigniew Jędrzejewski-Szmek |
436654 |
+ "remove:Remove systemd-boot from the ESP and EFI variables"
|
|
Zbigniew Jędrzejewski-Szmek |
436654 |
)
|
|
Zbigniew Jędrzejewski-Szmek |
436654 |
if (( CURRENT == 1 )); then
|
|
Zbigniew Jędrzejewski-Szmek |
436654 |
_describe -t commands 'bootctl command' _bootctl_cmds || compadd "$@"
|
|
Zbigniew Jędrzejewski-Szmek |
436654 |
@@ -22,4 +25,6 @@
|
|
Zbigniew Jędrzejewski-Szmek |
436654 |
_arguments \
|
|
Zbigniew Jędrzejewski-Szmek |
436654 |
{-h,--help}'[Prints a short help text and exits.]' \
|
|
Zbigniew Jędrzejewski-Szmek |
436654 |
'--version[Prints a short version string and exits.]' \
|
|
Zbigniew Jędrzejewski-Szmek |
436654 |
+ '--path=[Path to the EFI System Partition (ESP)]:path:_directories' \
|
|
Zbigniew Jędrzejewski-Szmek |
436654 |
+ '--no-variables[Do not touch EFI variables]' \
|
|
Zbigniew Jędrzejewski-Szmek |
436654 |
'*::bootctl command:_bootctl_command'
|