summaryrefslogtreecommitdiffstats
path: root/bash-completion/partx
diff options
context:
space:
mode:
Diffstat (limited to 'bash-completion/partx')
-rw-r--r--bash-completion/partx24
1 files changed, 22 insertions, 2 deletions
diff --git a/bash-completion/partx b/bash-completion/partx
index 804787f9d..921666274 100644
--- a/bash-completion/partx
+++ b/bash-completion/partx
@@ -22,9 +22,13 @@ _partx_module()
COMPREPLY=( $(compgen -P "$prefix" -W "$OUTPUT" -S ',' -- $realcur) )
return 0
;;
+ '-S'|'--sector-size')
+ COMPREPLY=( $(compgen -W "size" -- $cur) )
+ return 0
+ ;;
'-t'|'--type')
# FIXME: some command should list type libblkid knows.
- COMPREPLY=( $(compgen -W "aix bsd dos gpt mac minix sgi solaris_x86 sun ultrix unixware" -- $cur) )
+ COMPREPLY=( $(compgen -W "aix bsd dos gpt mac minix PMBR sgi solaris sun ultrix unixware" -- $cur) )
return 0
;;
'-h'|'--help'|'-V'|'--version')
@@ -33,7 +37,23 @@ _partx_module()
esac
case $cur in
-*)
- OPTS="--add --delete --show --update --bytes --noheadings --nr --output --pairs --raw --type --verbose --help --version"
+ OPTS="
+ --add
+ --delete
+ --update
+ --show
+ --bytes
+ --noheadings
+ --nr
+ --output
+ --pairs
+ --raw
+ --sector-size
+ --type
+ --verbose
+ --help
+ --version
+ "
COMPREPLY=( $(compgen -W "${OPTS[*]}" -- $cur) )
return 0
;;