From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54561) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1djtdB-0000mD-JX for guix-patches@gnu.org; Mon, 21 Aug 2017 16:49:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1djtd8-000859-Dq for guix-patches@gnu.org; Mon, 21 Aug 2017 16:49:05 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:39562) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1djtd8-00084z-B7 for guix-patches@gnu.org; Mon, 21 Aug 2017 16:49:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1djtd8-0002MW-4M for guix-patches@gnu.org; Mon, 21 Aug 2017 16:49:02 -0400 Subject: [bug#28178] [PATCH] bash completion: Complete files names after 'guix download'. Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53984) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1djtcO-0000UM-3W for guix-patches@gnu.org; Mon, 21 Aug 2017 16:48:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1djtcK-0007aj-2G for guix-patches@gnu.org; Mon, 21 Aug 2017 16:48:16 -0400 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:38167) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1djtcJ-0007Yk-Kf for guix-patches@gnu.org; Mon, 21 Aug 2017 16:48:12 -0400 From: Marius Bakke Date: Mon, 21 Aug 2017 22:48:07 +0200 Message-Id: <20170821204807.11929-1-mbakke@fastmail.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 28178@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