summaryrefslogtreecommitdiffstats
path: root/bash-completion/sfdisk
diff options
context:
space:
mode:
Diffstat (limited to 'bash-completion/sfdisk')
-rw-r--r--bash-completion/sfdisk66
1 files changed, 27 insertions, 39 deletions
diff --git a/bash-completion/sfdisk b/bash-completion/sfdisk
index 9128313ee..f8ae1f1b0 100644
--- a/bash-completion/sfdisk
+++ b/bash-completion/sfdisk
@@ -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
;;