[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=""
- branch master updated (86e782e2b6 -> 4af273e0a8), guix-commits, 2022/01/16
- 03/08: import/github: Test it., guix-commits, 2022/01/16
- 04/08: gnu: ristretto: Update to 0.12.2., guix-commits, 2022/01/16
- 08/08: gnu: python-cftime: Update to 1.5.1.1., guix-commits, 2022/01/16
- 01/08: machine: ssh: Add 'safety-checks?' field., guix-commits, 2022/01/16
- 07/08: bash completion: Fix options completion.,
guix-commits <=
- 06/08: tests: Clean up after 'tests/guix-package-net.sh'., guix-commits, 2022/01/16
- 05/08: tests: Clean up after 'tests/guix-graph.sh'., guix-commits, 2022/01/16
- 02/08: import/github: Return <git-reference> objects for git-fetch origins., guix-commits, 2022/01/16