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:
parent
39c795d8b7
commit
24bdce6ea8
|
@ -36,6 +36,7 @@ _fdisk_module()
|
||||||
case $cur in
|
case $cur in
|
||||||
-*)
|
-*)
|
||||||
OPTS="--sector-size
|
OPTS="--sector-size
|
||||||
|
--protect-boot
|
||||||
--compatibility
|
--compatibility
|
||||||
--color
|
--color
|
||||||
--list
|
--list
|
||||||
|
|
|
@ -85,6 +85,12 @@ _findmnt_module()
|
||||||
COMPREPLY=( $(compgen -W "$DEV_MPOINT" -- $cur) )
|
COMPREPLY=( $(compgen -W "$DEV_MPOINT" -- $cur) )
|
||||||
return 0
|
return 0
|
||||||
;;
|
;;
|
||||||
|
'-M'|'--mountpoint')
|
||||||
|
local IFS=$'\n'
|
||||||
|
compopt -o filenames
|
||||||
|
COMPREPLY=( $(compgen -o dirnames -- ${cur:-"/") )
|
||||||
|
return 0
|
||||||
|
;;
|
||||||
'-h'|'--help'|'-V'|'--version')
|
'-h'|'--help'|'-V'|'--version')
|
||||||
return 0
|
return 0
|
||||||
;;
|
;;
|
||||||
|
@ -105,6 +111,7 @@ _findmnt_module()
|
||||||
--tab-file
|
--tab-file
|
||||||
--first-only
|
--first-only
|
||||||
--invert
|
--invert
|
||||||
|
--json
|
||||||
--list
|
--list
|
||||||
--task
|
--task
|
||||||
--noheadings
|
--noheadings
|
||||||
|
@ -118,6 +125,7 @@ _findmnt_module()
|
||||||
--submounts
|
--submounts
|
||||||
--source
|
--source
|
||||||
--target
|
--target
|
||||||
|
--mountpoint
|
||||||
--help
|
--help
|
||||||
--version"
|
--version"
|
||||||
COMPREPLY=( $(compgen -W "${OPTS[*]}" -- $cur) )
|
COMPREPLY=( $(compgen -W "${OPTS[*]}" -- $cur) )
|
||||||
|
|
|
@ -31,13 +31,38 @@ _logger_module()
|
||||||
COMPREPLY=( $(compgen -W "$(awk '$NF ~ /^\// {print $NF}' /proc/net/unix)" -- $cur) )
|
COMPREPLY=( $(compgen -W "$(awk '$NF ~ /^\// {print $NF}' /proc/net/unix)" -- $cur) )
|
||||||
return 0
|
return 0
|
||||||
;;
|
;;
|
||||||
|
'--msgid')
|
||||||
|
COMPREPLY=( $(compgen -W "msgid" -- $cur) )
|
||||||
|
return 0
|
||||||
|
;;
|
||||||
'-h'|'--help'|'-V'|'--version')
|
'-h'|'--help'|'-V'|'--version')
|
||||||
return 0
|
return 0
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
case $cur in
|
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) )
|
COMPREPLY=( $(compgen -W "${OPTS[*]}" -- $cur) )
|
||||||
return 0
|
return 0
|
||||||
;;
|
;;
|
||||||
|
|
|
@ -34,6 +34,7 @@ _lslocks_module()
|
||||||
case $cur in
|
case $cur in
|
||||||
-*)
|
-*)
|
||||||
OPTS="--pid
|
OPTS="--pid
|
||||||
|
--json
|
||||||
--output
|
--output
|
||||||
--noheadings
|
--noheadings
|
||||||
--raw
|
--raw
|
||||||
|
|
|
@ -5,14 +5,14 @@ _sfdisk_module()
|
||||||
cur="${COMP_WORDS[COMP_CWORD]}"
|
cur="${COMP_WORDS[COMP_CWORD]}"
|
||||||
prev="${COMP_WORDS[COMP_CWORD-1]}"
|
prev="${COMP_WORDS[COMP_CWORD-1]}"
|
||||||
case $prev in
|
case $prev in
|
||||||
'-u'|'--unit')
|
|
||||||
COMPREPLY=( $(compgen -W "S C B M" -- $cur) )
|
|
||||||
return 0
|
|
||||||
;;
|
|
||||||
'-n'|'-C'|'--cylinders'|'-H'|'--heads'|'-S'|'--sectors')
|
'-n'|'-C'|'--cylinders'|'-H'|'--heads'|'-S'|'--sectors')
|
||||||
COMPREPLY=( $(compgen -W "number" -- $cur) )
|
COMPREPLY=( $(compgen -W "number" -- $cur) )
|
||||||
return 0
|
return 0
|
||||||
;;
|
;;
|
||||||
|
'--color')
|
||||||
|
COMPREPLY=( $(compgen -W "auto never always" -- $cur) )
|
||||||
|
return 0
|
||||||
|
;;
|
||||||
'-O'|'-I')
|
'-O'|'-I')
|
||||||
local IFS=$'\n'
|
local IFS=$'\n'
|
||||||
compopt -o filenames
|
compopt -o filenames
|
||||||
|
@ -28,48 +28,36 @@ _sfdisk_module()
|
||||||
cur=${cur#=}
|
cur=${cur#=}
|
||||||
;;
|
;;
|
||||||
-*)
|
-*)
|
||||||
OPTS="--show-size
|
OPTS="
|
||||||
--id
|
--activate
|
||||||
--change-id
|
--dump
|
||||||
--print-id
|
--json
|
||||||
|
--show-geometry
|
||||||
--list
|
--list
|
||||||
--list-free
|
--list-free
|
||||||
--dump
|
--show-size
|
||||||
--increment
|
|
||||||
--unit
|
|
||||||
--one-only
|
|
||||||
--list-types
|
--list-types
|
||||||
--DOS
|
|
||||||
--DOS-extended
|
|
||||||
--re-read
|
|
||||||
-N
|
|
||||||
-n
|
|
||||||
-O
|
|
||||||
-I
|
|
||||||
--verify
|
--verify
|
||||||
--version
|
--part-label
|
||||||
--help
|
--part-type
|
||||||
|
--part-uuid
|
||||||
|
--part-attrs
|
||||||
|
--append
|
||||||
|
--backup
|
||||||
|
--bytes
|
||||||
--force
|
--force
|
||||||
|
--color
|
||||||
|
--partno
|
||||||
|
--no-act
|
||||||
--no-reread
|
--no-reread
|
||||||
|
--backup-file
|
||||||
|
--output
|
||||||
--quiet
|
--quiet
|
||||||
--Linux
|
--label
|
||||||
--show-geometry
|
--label-nested
|
||||||
--show-pt-geometry
|
--help
|
||||||
--activate=
|
--version
|
||||||
--unhide=
|
"
|
||||||
--show-extended
|
|
||||||
--leave-last
|
|
||||||
--IBM
|
|
||||||
--in-order
|
|
||||||
--not-in-order
|
|
||||||
--inside-outer
|
|
||||||
--not-inside-outer
|
|
||||||
--nested
|
|
||||||
--chained
|
|
||||||
--onesector
|
|
||||||
--cylinders
|
|
||||||
--heads
|
|
||||||
--sectors"
|
|
||||||
COMPREPLY=( $(compgen -W "${OPTS[*]}" -- $cur) )
|
COMPREPLY=( $(compgen -W "${OPTS[*]}" -- $cur) )
|
||||||
return 0
|
return 0
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Reference in New Issue