summaryrefslogtreecommitdiff
path: root/bash-completion/flock
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/flock
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/flock')
-rw-r--r--bash-completion/flock20
1 files changed, 10 insertions, 10 deletions
diff --git a/bash-completion/flock b/bash-completion/flock
index 918a7d894..8cd60d33e 100644
--- a/bash-completion/flock
+++ b/bash-completion/flock
@@ -24,16 +24,16 @@ _flock_module()
esac
case $cur in
-*)
- OPTS="-s --shared
- -x --exclusive
- -u --unlock
- -n --nonblock
- -w --timeout
- -E --conflict-exit-code
- -o --close
- -c --command
- -h --help
- -V --version"
+ OPTS="--shared
+ --exclusive
+ --unlock
+ --nonblock
+ --timeout
+ --conflict-exit-code
+ --close
+ --command
+ --help
+ --version"
COMPREPLY=( $(compgen -W "${OPTS[*]}" -- $cur) )
return 0
;;