mirror of
https://github.com/ericonr/util-linux.git
synced 2024-04-21 09:12:35 -05:00
blkdiscard: Add --step [1] and --zeroout [2] options. Commit [1]:c472a7e35a
Commit [2]:7154cc8926
chmem: Commit:30e1ea8ba1
dmesg: Add --time-format. Commit:babf605d2c
fallocate: Add --insert-range [1], --collapse-range [2], --zero-range [3], and --posix [4] options. Also make the options to be in same order as usage() output. Commit [1]:b439065634
Commit [2]:83cc932d74
Commit [3]:1fd4f609ee
Commit [4]:833f9a7aae
Command [5]: fallocate --help | awk '/--/ {print "\t\t\t\t" $2}' flock: Add --no-fork option. Commit:703251401c
hwclock: Add --udate-drift [1], remove --badyear [2], and use the same argument for --date as in manual page[3]. Commit [1]:f276d71a3e
Commit [2]:f6374e1fb3
Commit [3]:cc5ec6936e
ldattach: Add --intro-command and --pause. Commit:8596f63914
losetup: Add --nooverlap [1], --json [2], --noheadings and --raw [3] options, and direct io aka DIO output field [4]. Commit [1]:9a94b634a3
Commit [2]:4827093d4b
Commit [3]:9f56106df6
Commit [4]:faeef4d2e9
lscpu: Add --json [1] and --physical [2] options. Add DRAWER [3] to output fields. Commit [1]:19a5510b96
Commit [2]:0d2b5d2a72
Commit [3]:b3adf6ef66
lsipc: Update output columns (earlier field names were almost completely incorrect). Remove --colon-separate and --print0 [1] options. Add --time-format, --bytes, --numeric-perms [2], and --list [3] options. Commit [1]:2a7150ac2e
Commit [2]:9d20ffda79
Commit [3]:2916afa3f5
lsmem: Commit:cad2d1ac92
lsns: Add cgroup --type argument. Commit:2b8889c44b
mount: Use /proc and kernel module listing for --type argument list. Some of the items in the lists do not make much sense, but this is still better than a static list provided by package maintainer. mountpoint: Remove fixme item that was left in place when this completion was originally wrote. nsenter: Add --cgroup [1], --setuid, --setgid [2], --preserve-credentials [3] and, --all [4] option. Commit [1]:f9e7b66dbd
Commit [2]:6b9e5bf670
Commit [3]:e99a6626d6
Commit [4]:974cc006f1
rtcwake: Add --auto [1], --adjfile [2], and --list-modes [3] options. Commit [1]:49ebda9b89
Commit [2]:3a2f3e82bb
Commit [3]:43a44bfc6d
setarch: Add --list [1] option. Commit [1]:5edb0ea6bb
setsid: Add --wait option. Commit:0dde19974b
umount: Use /proc and kernel module listing for --type argument list. unshare: Add --cgroup [1], --fork [2], --mount-proc [3], --map-root-user, --setgroups [4], and --propagation [5] options. Commit [1]:f9e7b66dbd
Commit [2]:5088ec338f
Commit [3]:6728ca101e
Commit [4]:fbceefded6
Commit [5]:f0f22e9c6f
zramctl: Add new output fields MEM-LIMIT, MEM-USED, and MIGRATED. Commit:bffc9174b8
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
42 lines
721 B
Plaintext
42 lines
721 B
Plaintext
_fallocate_module()
|
|
{
|
|
local cur prev OPTS
|
|
COMPREPLY=()
|
|
cur="${COMP_WORDS[COMP_CWORD]}"
|
|
prev="${COMP_WORDS[COMP_CWORD-1]}"
|
|
case $prev in
|
|
'-o'|'--offset'|'-l'|'--length')
|
|
COMPREPLY=( $(compgen -W "bytes" -- $cur) )
|
|
return 0
|
|
;;
|
|
'-h'|'--help'|'-V'|'--version')
|
|
return 0
|
|
;;
|
|
esac
|
|
case $cur in
|
|
-*)
|
|
OPTS="
|
|
--collapse-range
|
|
--dig-holes
|
|
--insert-range
|
|
--length
|
|
--keep-size
|
|
--offset
|
|
--punch-hole
|
|
--zero-range
|
|
--posix
|
|
--verbose
|
|
--help
|
|
--version
|
|
"
|
|
COMPREPLY=( $(compgen -W "${OPTS[*]}" -- $cur) )
|
|
return 0
|
|
;;
|
|
esac
|
|
local IFS=$'\n'
|
|
compopt -o filenames
|
|
COMPREPLY=( $(compgen -f -- $cur) )
|
|
return 0
|
|
}
|
|
complete -F _fallocate_module fallocate
|