summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorFulbert <fulbert@bluewin.ch>2022-01-14 20:37:03 +0100
committerLudovic Courtès <ludo@gnu.org>2022-01-16 23:56:56 +0100
commite35deac9e7379605c0e3918e74a6d153861a4aa2 (patch)
tree0c5af83f0e7e96e31ce66e531e2c377c60b38117 /etc
parent686f2eae348a44f76afe1fa73230dd87578c227d (diff)
downloadguix-e35deac9e7379605c0e3918e74a6d153861a4aa2.tar.gz
guix-e35deac9e7379605c0e3918e74a6d153861a4aa2.tar.xz
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>
Diffstat (limited to 'etc')
-rw-r--r--etc/completion/bash/guix2
1 files changed, 1 insertions, 1 deletions
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=""