]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - shell-completion/bash/hostnamectl
Merge pull request #9504 from poettering/nss-deadlock
[thirdparty/systemd.git] / shell-completion / bash / hostnamectl
index 6a252188ea09b8aa8b20650489d26e794fe3ffaa..af6db81ce15d3ce477986b59c54c3ca596bded60 100644 (file)
@@ -1,8 +1,9 @@
 # hostnamectl(1) completion                               -*- shell-script -*-
+# SPDX-License-Identifier: LGPL-2.1+
 #
 # This file is part of systemd.
 #
-# Copyright 2010 Ran Benita
+# Copyright © 2010 Ran Benita
 #
 # systemd is free software; you can redistribute it and/or modify it
 # under the terms of the GNU Lesser General Public License as published by
@@ -28,7 +29,7 @@ _hostnamectl() {
         local i verb comps
         local cur=${COMP_WORDS[COMP_CWORD]} prev=${COMP_WORDS[COMP_CWORD-1]}
         local OPTS='-h --help --version --transient --static --pretty
-                    --no-ask-password -H --host --machine'
+                    --no-ask-password -H --host -M --machine'
 
         if [[ $cur = -* ]]; then
                 COMPREPLY=( $(compgen -W '${OPTS[*]}' -- "$cur") )
@@ -52,7 +53,7 @@ _hostnamectl() {
         if [[ -z $verb ]]; then
                 comps=${VERBS[*]}
         elif __contains_word "$verb" ${VERBS[CHASSIS]}; then
-                comps='desktop laptop server tablet handset watch embedded vm container'
+                comps='desktop laptop convertible server tablet handset watch embedded vm container'
         elif __contains_word "$verb" ${VERBS[STANDALONE]} ${VERBS[ICONS]} ${VERBS[NAME]}; then
                 comps=''
         fi