bash-completion: update few options changed since v2.26

Attempt to find and update all changes to command line options that has
not been reflected in bash-completion files in between versions v2.26 to
v2.27-rc1.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
This commit is contained in:
Sami Kerola 2015-08-02 21:24:08 +01:00 committed by Karel Zak
parent 39c795d8b7
commit 24bdce6ea8
5 changed files with 63 additions and 40 deletions

View File

@ -36,6 +36,7 @@ _fdisk_module()
case $cur in
-*)
OPTS="--sector-size
--protect-boot
--compatibility
--color
--list

View File

@ -85,6 +85,12 @@ _findmnt_module()
COMPREPLY=( $(compgen -W "$DEV_MPOINT" -- $cur) )
return 0
;;
'-M'|'--mountpoint')
local IFS=$'\n'
compopt -o filenames
COMPREPLY=( $(compgen -o dirnames -- ${cur:-"/") )
return 0
;;
'-h'|'--help'|'-V'|'--version')
return 0
;;
@ -105,6 +111,7 @@ _findmnt_module()
--tab-file
--first-only
--invert
--json
--list
--task
--noheadings
@ -118,6 +125,7 @@ _findmnt_module()
--submounts
--source
--target
--mountpoint
--help
--version"
COMPREPLY=( $(compgen -W "${OPTS[*]}" -- $cur) )

View File

@ -31,13 +31,38 @@ _logger_module()
COMPREPLY=( $(compgen -W "$(awk '$NF ~ /^\// {print $NF}' /proc/net/unix)" -- $cur) )
return 0
;;
'--msgid')
COMPREPLY=( $(compgen -W "msgid" -- $cur) )
return 0
;;
'-h'|'--help'|'-V'|'--version')
return 0
;;
esac
case $cur in
-*)
OPTS="--journald --udp --id --file --help --server --skip-empty --port --priority --rfc3164 --rfc5424 --stderr --tag --size --socket --version"
OPTS="
--file
--help
--id
--journald
--msgid
--no-act
--octet-count
--port
--prio-prefix
--priority
--rfc3164
--rfc5424
--server
--size
--skip-empty
--socket
--stderr
--tag
--udp
--version
"
COMPREPLY=( $(compgen -W "${OPTS[*]}" -- $cur) )
return 0
;;

View File

@ -34,6 +34,7 @@ _lslocks_module()
case $cur in
-*)
OPTS="--pid
--json
--output
--noheadings
--raw

View File

@ -5,14 +5,14 @@ _sfdisk_module()
cur="${COMP_WORDS[COMP_CWORD]}"
prev="${COMP_WORDS[COMP_CWORD-1]}"
case $prev in
'-u'|'--unit')
COMPREPLY=( $(compgen -W "S C B M" -- $cur) )
return 0
;;
'-n'|'-C'|'--cylinders'|'-H'|'--heads'|'-S'|'--sectors')
COMPREPLY=( $(compgen -W "number" -- $cur) )
return 0
;;
'--color')
COMPREPLY=( $(compgen -W "auto never always" -- $cur) )
return 0
;;
'-O'|'-I')
local IFS=$'\n'
compopt -o filenames
@ -28,48 +28,36 @@ _sfdisk_module()
cur=${cur#=}
;;
-*)
OPTS="--show-size
--id
--change-id
--print-id
OPTS="
--activate
--dump
--json
--show-geometry
--list
--list-free
--dump
--increment
--unit
--one-only
--show-size
--list-types
--DOS
--DOS-extended
--re-read
-N
-n
-O
-I
--verify
--version
--help
--part-label
--part-type
--part-uuid
--part-attrs
--append
--backup
--bytes
--force
--color
--partno
--no-act
--no-reread
--backup-file
--output
--quiet
--Linux
--show-geometry
--show-pt-geometry
--activate=
--unhide=
--show-extended
--leave-last
--IBM
--in-order
--not-in-order
--inside-outer
--not-inside-outer
--nested
--chained
--onesector
--cylinders
--heads
--sectors"
--label
--label-nested
--help
--version
"
COMPREPLY=( $(compgen -W "${OPTS[*]}" -- $cur) )
return 0
;;