summaryrefslogtreecommitdiffstats
path: root/bash-completion/dmesg
diff options
context:
space:
mode:
authorVille Skyttä2013-04-07 10:12:08 +0200
committerKarel Zak2013-04-08 17:06:56 +0200
commit0d5b9b8ab109200311ffb211535a999b57a4673e (patch)
tree5cd8f838310cc26924d043bbc071d5fed97a1458 /bash-completion/dmesg
parentSpelling fixes. (diff)
downloadkernel-qcow2-util-linux-0d5b9b8ab109200311ffb211535a999b57a4673e.tar.gz
kernel-qcow2-util-linux-0d5b9b8ab109200311ffb211535a999b57a4673e.tar.xz
kernel-qcow2-util-linux-0d5b9b8ab109200311ffb211535a999b57a4673e.zip
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>
Diffstat (limited to 'bash-completion/dmesg')
-rw-r--r--bash-completion/dmesg48
1 files changed, 24 insertions, 24 deletions
diff --git a/bash-completion/dmesg b/bash-completion/dmesg
index f1189d2c6..60ecc1af6 100644
--- a/bash-completion/dmesg
+++ b/bash-completion/dmesg
@@ -26,30 +26,30 @@ _dmesg_module()
return 0
;;
esac
- OPTS="-C --clear
- -c --read-clear
- -D --console-off
- -d --show-delta
- -e --reltime
- -E --console-on
- -F --file
- -f --facility
- -H --human
- -k --kernel
- -L --color
- -l --level
- -n --console-level
- -P --nopager
- -r --raw
- -S --syslog
- -s --buffer-size
- -T --ctime
- -t --notime
- -u --userspace
- -w --follow
- -x --decode
- -h --help
- -V --version"
+ OPTS="--clear
+ --read-clear
+ --console-off
+ --show-delta
+ --reltime
+ --console-on
+ --file
+ --facility
+ --human
+ --kernel
+ --color
+ --level
+ --console-level
+ --nopager
+ --raw
+ --syslog
+ --buffer-size
+ --ctime
+ --notime
+ --userspace
+ --follow
+ --decode
+ --help
+ --version"
COMPREPLY=( $(compgen -W "${OPTS[*]}" -- $cur) )
return 0
}