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


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

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





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.