guix-commits
[Top][All Lists]
Advanced

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

07/08: bash completion: Fix options completion.


From: guix-commits
Subject: 07/08: bash completion: Fix options completion.
Date: Sun, 16 Jan 2022 17:59:27 -0500 (EST)

civodul pushed a commit to branch master
in repository guix.

commit e35deac9e7379605c0e3918e74a6d153861a4aa2
Author: Fulbert <fulbert@bluewin.ch>
AuthorDate: Fri Jan 14 20:37:03 2022 +0100

    bash completion: Fix options completion.
    
    Fixes, for example, "guix import pypi --<TAB>", which would previously
    fail to show '--recursive'.
    
    * etc/completion/bash/guix (_guix_complete_option): Fix options
    completion for first subcommand.
    
    Signed-off-by: Ludovic Courtès <ludo@gnu.org>
---
 etc/completion/bash/guix | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/etc/completion/bash/guix b/etc/completion/bash/guix
index f262d4d95a..38fb490cb3 100644
--- a/etc/completion/bash/guix
+++ b/etc/completion/bash/guix
@@ -73,7 +73,7 @@ _guix_complete_option ()
     local command="${COMP_WORDS[$1]}"
     local subcommand="${COMP_WORDS[$(($1 + 1))]}"
 
-    if [ $1 -le 1 ]
+    if [ $1 -eq 0 ]
     then
        command=""
        subcommand=""



reply via email to

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