]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
bash-completion: dmesg: remove redundant completion for --buffer-size
authorChristian Goeschel Ndjomouo <cgoesc2@wgu.edu>
Fri, 10 Oct 2025 20:48:39 +0000 (16:48 -0400)
committerChristian Goeschel Ndjomouo <cgoesc2@wgu.edu>
Fri, 10 Oct 2025 21:20:33 +0000 (17:20 -0400)
The option --buffer-size already infers that its the optional argument
is a size value. In addition to that, when the option is completed the
user will have to delete the word 'size' from the command line and type
the desired value, which is not an ideal user experience.

Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
bash-completion/dmesg

index 4754a12f40bc2d8134b1949c3d5f13ee2e9f1726..82b81849e694bcd9743aae1ef0fcc5421085db9e 100644 (file)
@@ -20,10 +20,6 @@ _dmesg_module()
                        COMPREPLY=( $(compgen -W "emerg alert crit err warn notice info debug" -- $cur) )
                        return 0
                        ;;
-               '-s'|'--buffer-size')
-                       COMPREPLY=( $(compgen -W "size" -- $cur) )
-                       return 0
-                       ;;
                '--time-format')
                        COMPREPLY=( $(compgen -W "delta reltime ctime notime iso" -- $cur) )
                        return 0