]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
bash-completion: networkctl: support --full and --lines
authorYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 9 Jan 2020 11:21:28 +0000 (20:21 +0900)
committerLennart Poettering <lennart@poettering.net>
Thu, 9 Jan 2020 14:43:18 +0000 (15:43 +0100)
shell-completion/bash/networkctl

index 290a62f8116b70111ddbc1356dcc192ee8e561e6..47fff4a2dcb6caaee596332efdc7beae422f88c5 100644 (file)
@@ -32,8 +32,8 @@ _networkctl() {
     local i verb comps
     local cur=${COMP_WORDS[COMP_CWORD]} prev=${COMP_WORDS[COMP_CWORD-1]}
     local -A OPTS=(
-        [STANDALONE]='-a --all -h --help --version --no-pager --no-legend -s --stats'
-        [ARG]=''
+        [STANDALONE]='-a --all -h --help --version --no-pager --no-legend -s --stats -l --full'
+        [ARG]='-n --lines'
     )
 
     local -A VERBS=(