]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
bash-completion: dmesg: complete filenames for --kmsg-file
authorChristian Goeschel Ndjomouo <cgoesc2@wgu.edu>
Fri, 10 Oct 2025 20:47:01 +0000 (16:47 -0400)
committerChristian Goeschel Ndjomouo <cgoesc2@wgu.edu>
Fri, 10 Oct 2025 21:20:29 +0000 (17:20 -0400)
Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
bash-completion/dmesg

index 15a7888b242b00ed8464203e9c546c41d6169793..4754a12f40bc2d8134b1949c3d5f13ee2e9f1726 100644 (file)
@@ -6,7 +6,7 @@ _dmesg_module()
        cur="${COMP_WORDS[COMP_CWORD]}"
        prev="${COMP_WORDS[COMP_CWORD-1]}"
        case $prev in
-               '-F'|'--file')
+               '-F'|'--file'|'-K'|'--kmsg-file')
                        local IFS=$'\n'
                        compopt -o filenames
                        COMPREPLY=( $(compgen -f -- $cur) )
@@ -21,7 +21,7 @@ _dmesg_module()
                        return 0
                        ;;
                '-s'|'--buffer-size')
-                       COMPREPLY=( $(compgen -W "size" -- $cur) )
+                       COMPREPLY=( $(compgen -W "size" -- $cur) )
                        return 0
                        ;;
                '--time-format')