Commit Graph

8 Commits

Author SHA1 Message Date
Sami Kerola 5adb0c9066 bash-completion: release preparations
6e103c7690 blkzone: Add --force option
9cd88771ef fdisk: add --lock and LOCK_BLOCK_DEVICE
921ceaca31 wipefs: add --lock and LOCK_BLOCK_DEVICE
c3ef1268a0 sfdisk: add --lock and LOCK_BLOCK_DEVICE
b8671fe763 mkswap: add --lock and LOCK_BLOCK_DEVICE
ec8f712157 cfdisk: add --lock and LOCK_BLOCK_DEVICE
f2229320a9 fdisk: add --noauto-pt
7f1f0584c2 nsenter: add support for the time namespace
dd52c4fa01 lsirq: add -n option
ee5a160250 sfdisk: add --relocate command
99d78b2fef fdisk: add --list-details
65e27d545c sfdisk: add --disk-id to change disk UUID/ID
34fed3ff17 blkdiscard: use O_EXCL, add --force

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2020-06-15 11:35:40 +02:00
Kevin Locke 6ead91ce1e bash-completion: Add fallback for symlinks/images
For commands which support operating on files (i.e. disk images), it is
desirable for bash-completion to complete matching file names.  It is
also desirable to complete on block device symlinks (e.g. under
/dev/disk).  To complete common use cases, often on canonical device
names, continue to try completion using canonical device names, then
fall back to matching any file incrementally as Bash does by default.[1]

[1]: https://github.com/karelzak/util-linux/issues/842#issuecomment-523450243

Signed-off-by: Kevin Locke <kevin@kevinlocke.name>
2019-09-19 08:16:32 -06:00
Sami Kerola 37a6cc7a14 bash-completion: update uuidgen, wipefs, tunelp, setpriv, and hwclock
uuidgen: Add hash-based UUIDs to bash-completion.  These were added in
commit c6f1ec68a8.

wipefs: Command started to use libsmartcols, and it got some new options.
Commit d9921b2a12.

rename: New option was added in commit fabb90676a.

tunelp: The --trust-irq was removed it being years broken.  Commit
d52eb4bd90.

setpriv: Add --ambient-caps option from commit 0c92194eee.
In same go fix 'bash set -u' issue, that is the same as mentioned commit
abbcec4fc9.

hwclock: For some reason --get has always been missing from this file.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2017-09-18 11:04:52 +02:00
Sami Kerola c6b1d511d2
bash-completion: update misc-utils
fincore:

	Add RES column to --output completions.

	Commit: e4e8b57be2

findfs:

	Commit: 940817b736

logger:

	Add --socket-errors [1] and --tcp [2] options.

	Commit [1]: d77dc29e6e
	Commit [2]: 68265d070d

lsblk:

	Add HOTPLUG [1], SERIAL [2], and SUBSYSTEMS [3] output fields.  Add
	--json [4], --output-all [5], and --paths [6] options.

	Commit [1]: 483987c275
	Commit [2]: 460c7afb79
	Commit [3]: 7f14ee1b55
	Commit [4]: 4a102a4871
	Commit [5]: 1b4d2a4a4a
	Commit [6]: c7e76cd145

lslocks:

	Add --noinaccessible option.  Remove file argument completion, this
	command does not use that sort of command line input.

	Commit: f29bc6e1cc

mcookie:

	Add --max-size option.

	Commit: f7bac5731b

wipefs:

	Add --backup option.

	Commit: 7e658c15a2

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2017-04-17 18:18:10 +01:00
Sami Kerola 53154dae39 bash-completion: stop being clever when listing block devices
Various commands such as blkid, cfdisk, fdisk, delpart, and so on listed
only partitions and missed for example disks and volume groups.  The
right thing to do is to list all block devices in all for all commands
performing operations with them.  This might occasionally list unexpected
devices that I think is lesser bad than missing some.

Addresses: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=764488
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2014-10-31 10:39:00 +01:00
Ville Skyttä 0d5b9b8ab1 bash-completion: Don't offer short options where corresponding long one exists.
Users who know the short options can just hit the short option instead
of tab, and it's not likely that it would be helpful to present a list
of single character options to users who don't know them, doing so
just unnecessarily trashes the list of suggestions.

Signed-off-by: Ville Skyttä <ville.skytta@iki.fi>
2013-04-08 17:06:56 +02:00
Ville Skyttä d4f9b8d74c bash-completion: Don't offer any more completions after help or version.
Signed-off-by: Ville Skyttä <ville.skytta@iki.fi>
2013-04-08 17:06:52 +02:00
Karel Zak 20da58084a bash-completion: rename shell-completion -> bash-completion
Signed-off-by: Karel Zak <kzak@redhat.com>
2013-04-05 14:58:07 +02:00