me
/
guix
Archived
1
0
Fork 0

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>
master
Fulbert 2022-01-14 20:37:03 +01:00 committed by Ludovic Courtès
parent 686f2eae34
commit e35deac9e7
No known key found for this signature in database
GPG Key ID: 090B11993D9AEBB5
1 changed files with 1 additions and 1 deletions

View File

@ -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=""