diff options
author | Ludovic Courtès <ludo@gnu.org> | 2015-05-01 17:39:39 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2015-05-01 17:39:39 +0200 |
commit | 868ef9aec79fac92efbe885120331310592fef98 (patch) | |
tree | 8ba6c43a2e59afa8f3ab3210826ad9d3cda71c12 | |
parent | cb151c68bfdb207d6029402c4a1c004ebd630d68 (diff) | |
download | guix-868ef9aec79fac92efbe885120331310592fef98.tar guix-868ef9aec79fac92efbe885120331310592fef98.tar.gz |
bash completion: Complete long options with no short variant.
* etc/completion/bash/guix (_guix_complete_option): Change grep regexp
to match options that don't have a short option name.
-rw-r--r-- | etc/completion/bash/guix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/completion/bash/guix b/etc/completion/bash/guix index 2a3fa1201e..e4d9a497b3 100644 --- a/etc/completion/bash/guix +++ b/etc/completion/bash/guix @@ -35,7 +35,7 @@ _guix_complete_installed_package () _guix_complete_option () { local options="$(${COMP_WORDS[0]} ${COMP_WORDS[1]} --help \ - | grep '^ -' \ + | grep '^ \+-' \ | sed -e's/^.*--\([a-zA-Z0-9_-]\+\)\(=\?\).*/--\1\2/g' )" compopt -o nospace COMPREPLY=($(compgen -W "$options" -- "${COMP_WORDS[$word_count - 1]}")) |