Subject: bug#28178: closed (Re: [bug#28178] [PATCH] bash completion: Complete files names after 'guix download'.)

From: [email-masked] (GNU bug Tracking System)
Date: Tue, 22 Aug 2017 21:27:03 +0000

Your bug report

#28178: [PATCH] bash completion: Complete files names after 'guix download'.

which was filed against the guix-patches package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
28178: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=28178
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: [bug#28178] [PATCH] bash completion: Complete files names after 'guix download'.
From: Marius Bakke <[email-masked]>
To: Ludovic Courtès <[email-masked]>
Cc: [email-masked]
Date: Tue, 22 Aug 2017 23:26:43 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

Ludovic Courtès <[email-masked]> writes:

> Marius Bakke <[email-masked]> skribis:
>
>> * etc/completion/bash/guix (_guix_complete): When the command is "download",
>> use __guix_complete_file.
>
> Good idea, and LGTM.  Thanks!

Pushed as ed8634c404410ed5e0d3ab06e43bd50d4eed9c42.

Subject: [PATCH] bash completion: Complete files names after 'guix download'.
From: Marius Bakke <[email-masked]>
To: [email-masked]
Cc: Marius Bakke <[email-masked]>
Date: Mon, 21 Aug 2017 22:48:07 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

* etc/completion/bash/guix (_guix_complete): When the command is "download",
use __guix_complete_file.
---
 etc/completion/bash/guix | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/etc/completion/bash/guix b/etc/completion/bash/guix
index 6a5f281c4..6b84193db 100644
--- a/etc/completion/bash/guix
+++ b/etc/completion/bash/guix
@@ -158,6 +158,9 @@ _guix_complete ()
 		else
 		    _guix_complete_available_package "$word_at_point"
 		fi
+	    elif _guix_is_command "download"
+	    then
+		 _guix_complete_file
 	    elif _guix_is_command "system"
 	    then
 		case $COMP_CWORD in
-- 
2.14.1