diff options
author | Sami Kerola | 2017-04-11 21:30:02 +0200 |
---|---|---|
committer | Sami Kerola | 2017-04-17 19:12:10 +0200 |
commit | 99d8ed0ac53f8ede5dedcfb25fd5f9085b131f0b (patch) | |
tree | 2a4291377d3ba703cfe031d7eb0898867514ff5c /bash-completion/partx | |
parent | script: don't call strftime() if not necessary (diff) | |
download | kernel-qcow2-util-linux-99d8ed0ac53f8ede5dedcfb25fd5f9085b131f0b.tar.gz kernel-qcow2-util-linux-99d8ed0ac53f8ede5dedcfb25fd5f9085b131f0b.tar.xz kernel-qcow2-util-linux-99d8ed0ac53f8ede5dedcfb25fd5f9085b131f0b.zip |
bash-completion: update disk-utils
fdformat:
Add --from, --to, and --repair options.
Commit: e0402441a143533d33d3c450471b2cd655407d77
fdisk:
Add --output [1], --bytes [2], --wipe [3], --wipe-partition [4], and
remove --geom- from from --cylinders, --heads, --sector options [5].
Commit [1]: fff8ad5882308825a131c645e4d28bcaef943351
Commit [2]: 354f8cc8cf06de44656fb83705c57062d04d1565
Commit [3]: cb9a4b0033eca429689a403be2a192fe2842f2e9
Commit [4]: ba465623d84b9e330f248a477d078b5f280b7943
Commit [5]: 4b4e391a28b4dfeb69781c20190bffe8622d1907
fsck.cramfs:
Broken since first commit.
Commit: bf60993cf2442f67bd47bcfcf6bd49c7392c2ba1
mkswap:
Provide random uuid when completing --uuid argument.
partx:
Add --sector-size option. Fix also list of known partition types to
match with libblkid blkid_idinfo names. The fix is also applied to
manual page.
Commit: f8a4a0d4f2fd569252029bd004e24ee433b43fe8
Reference: git grep -A 4 blkid_idinfo libblkid/src/partitions | grep name
sfdisk:
Add --reoder, --delete, --mode-dataa, -no-tell-kernel, --wipe, and
--wipe-partitions options. In same go fix some option argument
completions.
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'bash-completion/partx')
-rw-r--r-- | bash-completion/partx | 24 |
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 ;; |