GNU bug report logs - #28178
[PATCH] bash completion: Complete files names after 'guix download'.

Previous Next

Package: guix-patches;

Reported by: Marius Bakke <mbakke <at> fastmail.com>

Date: Mon, 21 Aug 2017 20:49:01 UTC

Severity: normal

Tags: patch

Done: Marius Bakke <mbakke <at> fastmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Marius Bakke <mbakke <at> fastmail.com>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#28178: closed ([PATCH] bash completion: Complete files names
 after 'guix download'.)
Date: Tue, 22 Aug 2017 21:27:03 +0000
[Message part 1 (text/plain, inline)]
Your message dated Tue, 22 Aug 2017 23:26:43 +0200
with message-id <878tib2t0s.fsf <at> fastmail.com>
and subject line Re: [bug#28178] [PATCH] bash completion: Complete files names after 'guix download'.
has caused the debbugs.gnu.org bug report #28178,
regarding [PATCH] bash completion: Complete files names after 'guix download'.
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
28178: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=28178
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Marius Bakke <mbakke <at> fastmail.com>
To: guix-patches <at> gnu.org
Cc: Marius Bakke <mbakke <at> fastmail.com>
Subject: [PATCH] bash completion: Complete files names after 'guix download'.
Date: Mon, 21 Aug 2017 22:48:07 +0200
* 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



[Message part 3 (message/rfc822, inline)]
From: Marius Bakke <mbakke <at> fastmail.com>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: 28178-done <at> debbugs.gnu.org
Subject: Re: [bug#28178] [PATCH] bash completion: Complete files names after
 'guix download'.
Date: Tue, 22 Aug 2017 23:26:43 +0200
[Message part 4 (text/plain, inline)]
Ludovic Courtès <ludo <at> gnu.org> writes:

> Marius Bakke <mbakke <at> fastmail.com> skribis:
>
>> * etc/completion/bash/guix (_guix_complete): When the command is "download",
>> use __guix_complete_file.
>
> Good idea, and LGTM.  Thanks!

Pushed as ed8634c404410ed5e0d3ab06e43bd50d4eed9c42.
[signature.asc (application/pgp-signature, inline)]

This bug report was last modified 7 years and 270 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.