[systemd-commits] shell-completion/bash shell-completion/zsh TODO

Ronny Chevalier rchevalier at kemper.freedesktop.org
Tue Dec 9 16:11:42 PST 2014


 TODO                               |    2 +-
 shell-completion/bash/systemctl.in |    2 +-
 shell-completion/zsh/_systemctl.in |    3 ++-
 3 files changed, 4 insertions(+), 3 deletions(-)

New commits:
commit 409886c424cfaeeb5cf8928905560e5cac2d492d
Author: Ronny Chevalier <chevalier.ronny at gmail.com>
Date:   Wed Dec 10 01:10:01 2014 +0100

    shell-completion: systemctl edit

diff --git a/TODO b/TODO
index 08051ce..a09451d 100644
--- a/TODO
+++ b/TODO
@@ -813,7 +813,7 @@ External:
 
 * zsh shell completion:
   - <command> <verb> -<TAB> should complete options, but currently does not
-  - systemctl add-wants,add-requires, edit
+  - systemctl add-wants,add-requires
 
 
 Regularly:
diff --git a/shell-completion/bash/systemctl.in b/shell-completion/bash/systemctl.in
index 9e98a18..8063316 100644
--- a/shell-completion/bash/systemctl.in
+++ b/shell-completion/bash/systemctl.in
@@ -139,7 +139,7 @@ _systemctl () {
         fi
 
         local -A VERBS=(
-                [ALL_UNITS]='is-active is-failed is-enabled status show cat mask preset help list-dependencies'
+                [ALL_UNITS]='is-active is-failed is-enabled status show cat mask preset help list-dependencies edit'
             [ENABLED_UNITS]='disable'
            [DISABLED_UNITS]='enable'
         [REENABLABLE_UNITS]='reenable'
diff --git a/shell-completion/zsh/_systemctl.in b/shell-completion/zsh/_systemctl.in
index 7eefe53..04cd945 100644
--- a/shell-completion/zsh/_systemctl.in
+++ b/shell-completion/zsh/_systemctl.in
@@ -33,6 +33,7 @@
     "preset:Enable/disable one or more unit files based on preset configuration"
     "set-default:Set the default target"
     "get-default:Query the default target"
+    "edit:Edit one or more unit files"
     "is-system-running:Query overall status of the system"
     "help:Show documentation for specified units"
     "list-dependencies:Show unit dependency tree"
@@ -170,7 +171,7 @@ _systemctl_disabled_units(){_sys_disabled_units=($(__systemctl list-unit-files
 _systemctl_masked_units()  {_sys_masked_units=(  $(__systemctl list-unit-files     | { while read -r a b; do [[ $b == "masked" ]] && echo -E - " $a"; done; }) )}
 
 # Completion functions for ALL_UNITS
-for fun in is-active is-failed is-enabled status show cat mask preset help list-dependencies ; do
+for fun in is-active is-failed is-enabled status show cat mask preset help list-dependencies edit ; do
   (( $+functions[_systemctl_$fun] )) || _systemctl_$fun()
   {
     _systemctl_really_all_units



More information about the systemd-commits mailing list