From 0d5b9b8ab109200311ffb211535a999b57a4673e Mon Sep 17 00:00:00 2001 From: Ville Skyttä Date: Sun, 7 Apr 2013 11:12:08 +0300 Subject: 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ä --- bash-completion/chrt | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'bash-completion/chrt') diff --git a/bash-completion/chrt b/bash-completion/chrt index b2e521630..388d29819 100644 --- a/bash-completion/chrt +++ b/bash-completion/chrt @@ -14,18 +14,18 @@ _chrt_module() # values. Perhaps the command interface should be reconsidered. case $cur in -*) - OPTS="-b --batch - -f --fifo - -i --idle - -o --other - -r --rr - -R --reset-on-fork - -a --all-tasks - -h --help - -m --max - -p --pid - -v --verbose - -V --version" + OPTS="--batch + --fifo + --idle + --other + --rr + --reset-on-fork + --all-tasks + --help + --max + --pid + --verbose + --version" COMPREPLY=( $(compgen -W "${OPTS[*]}" -- $cur) ) return 0 ;; -- cgit v1.2.3-55-g7522