diff options
author | Ville Skyttä | 2013-04-07 10:12:08 +0200 |
---|---|---|
committer | Karel Zak | 2013-04-08 17:06:56 +0200 |
commit | 0d5b9b8ab109200311ffb211535a999b57a4673e (patch) | |
tree | 5cd8f838310cc26924d043bbc071d5fed97a1458 /bash-completion/unshare | |
parent | Spelling fixes. (diff) | |
download | kernel-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/unshare')
-rw-r--r-- | bash-completion/unshare | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/bash-completion/unshare b/bash-completion/unshare index 5342961f6..86a4af482 100644 --- a/bash-completion/unshare +++ b/bash-completion/unshare @@ -11,14 +11,14 @@ _unshare_module() esac case $cur in -*) - OPTS="-m --mount - -u --uts - -i --ipc - -n --net - -p --pid - -U --user - -h --help - -V --version" + OPTS="--mount + --uts + --ipc + --net + --pid + --user + --help + --version" COMPREPLY=( $(compgen -W "${OPTS[*]}" -- $cur) ) return 0 ;; |