aboutsummaryrefslogtreecommitdiffstats
path: root/bash-completion/setarch
diff options
context:
space:
mode:
authorVille Skyttä <ville.skytta@iki.fi>2013-04-07 11:12:08 +0300
committerKarel Zak <kzak@redhat.com>2013-04-08 17:06:56 +0200
commit0d5b9b8ab109200311ffb211535a999b57a4673e (patch)
tree5cd8f838310cc26924d043bbc071d5fed97a1458 /bash-completion/setarch
parent58c41e15b360eb6c873818150e68c900927b62cf (diff)
downloadutil-linux-0d5b9b8ab109200311ffb211535a999b57a4673e.tar.gz
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/setarch')
-rw-r--r--bash-completion/setarch30
1 files changed, 15 insertions, 15 deletions
diff --git a/bash-completion/setarch b/bash-completion/setarch
index 6224a11cae..80aabd5aa2 100644
--- a/bash-completion/setarch
+++ b/bash-completion/setarch
@@ -22,21 +22,21 @@ _setarch_module()
fi
case $cur in
-*)
- OPTS="-v, --verbose
- -R, --addr-no-randomize
- -F, --fdpic-funcptrs
- -Z, --mmap-page-zero
- -L, --addr-compat-layout
- -X, --read-implies-exec
- -B, --32bit
- -I, --short-inode
- -S, --whole-seconds
- -T, --sticky-timeouts
- -3, --3gb
- --4gb
- --uname-2.6
- -h, --help
- -V, --version"
+ OPTS="--verbose
+ --addr-no-randomize
+ --fdpic-funcptrs
+ --mmap-page-zero
+ --addr-compat-layout
+ --read-implies-exec
+ --32bit
+ --short-inode
+ --whole-seconds
+ --sticky-timeouts
+ --3gb
+ --4gb
+ --uname-2.6
+ --help
+ --version"
COMPREPLY=( $(compgen -W "${OPTS[*]}" -- $cur) )
return 0
;;