* [bug#28178] [PATCH] bash completion: Complete files names after 'guix download'.
@ 2017-08-21 20:48 Marius Bakke
2017-08-22 13:08 ` Ludovic Courtès
0 siblings, 1 reply; 3+ messages in thread
From: Marius Bakke @ 2017-08-21 20:48 UTC (permalink / raw)
To: 28178
* 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
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [bug#28178] [PATCH] bash completion: Complete files names after 'guix download'.
2017-08-21 20:48 [bug#28178] [PATCH] bash completion: Complete files names after 'guix download' Marius Bakke
@ 2017-08-22 13:08 ` Ludovic Courtès
2017-08-22 21:26 ` bug#28178: " Marius Bakke
0 siblings, 1 reply; 3+ messages in thread
From: Ludovic Courtès @ 2017-08-22 13:08 UTC (permalink / raw)
To: Marius Bakke; +Cc: 28178
Marius Bakke <mbakke@fastmail.com> skribis:
> * etc/completion/bash/guix (_guix_complete): When the command is "download",
> use __guix_complete_file.
Good idea, and LGTM. Thanks!
Ludo’.
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#28178: [PATCH] bash completion: Complete files names after 'guix download'.
2017-08-22 13:08 ` Ludovic Courtès
@ 2017-08-22 21:26 ` Marius Bakke
0 siblings, 0 replies; 3+ messages in thread
From: Marius Bakke @ 2017-08-22 21:26 UTC (permalink / raw)
To: Ludovic Courtès; +Cc: 28178-done
[-- Attachment #1: Type: text/plain, Size: 295 bytes --]
Ludovic Courtès <ludo@gnu.org> writes:
> Marius Bakke <mbakke@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.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-08-22 21:27 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-21 20:48 [bug#28178] [PATCH] bash completion: Complete files names after 'guix download' Marius Bakke
2017-08-22 13:08 ` Ludovic Courtès
2017-08-22 21:26 ` bug#28178: " Marius Bakke
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).