guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

08/08: bash completion: Complete long options with no short variant.


From: Ludovic Courtès
Subject: 08/08: bash completion: Complete long options with no short variant.
Date: Fri, 01 May 2015 15:40:01 +0000

civodul pushed a commit to branch core-updates
in repository guix.

commit 868ef9aec79fac92efbe885120331310592fef98
Author: Ludovic Courtès <address@hidden>
Date:   Fri May 1 17:39:39 2015 +0200

    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.
---
 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 2a3fa12..e4d9a49 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]}"))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]