chiark / gitweb /
man: add a link to systemd-coredump(8) in Description of coredump.conf(5)
[elogind.git] / shell-completion / bash / hostnamectl
index 9c75da9e7f8b6f699f0d465d1563e9e10e514650..7a0850dbe44c67c7faa6121cf2e005401b2a737f 100644 (file)
@@ -38,7 +38,8 @@ _hostnamectl() {
         local -A VERBS=(
                 [STANDALONE]='status'
                      [ICONS]='set-icon-name'
-                      [NAME]='set-hostname'
+                      [NAME]='set-hostname set-deployment'
+                   [CHASSIS]='set-chassis'
         )
 
         for ((i=0; i < COMP_CWORD; i++)); do
@@ -50,6 +51,8 @@ _hostnamectl() {
 
         if [[ -z $verb ]]; then
                 comps=${VERBS[*]}
+        elif __contains_word "$verb" ${VERBS[CHASSIS]}; then
+                comps='desktop laptop server tablet handset watch embedded vm container'
         elif __contains_word "$verb" ${VERBS[STANDALONE]} ${VERBS[ICONS]} ${VERBS[NAME]}; then
                 comps=''
         fi