From mboxrd@z Thu Jan 1 00:00:00 1970 From: Oleg Pykhalov Subject: bug#32020: [PATCH 1/2] bash completion: Complete files names after 'guix build -L'. Date: Sat, 30 Jun 2018 19:52:58 +0300 Message-ID: <20180630165259.29152-1-go.wigust@gmail.com> References: <106ea85e25bddfc69c20b97270ae35e6@riseup.net> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58886) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fZJ8R-0000va-9K for bug-guix@gnu.org; Sat, 30 Jun 2018 12:54:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fZJ8M-0006sN-7A for bug-guix@gnu.org; Sat, 30 Jun 2018 12:54:07 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:33506) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fZJ8M-0006rb-42 for bug-guix@gnu.org; Sat, 30 Jun 2018 12:54:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fZJ8L-0006nz-PZ for bug-guix@gnu.org; Sat, 30 Jun 2018 12:54:01 -0400 In-Reply-To: <106ea85e25bddfc69c20b97270ae35e6@riseup.net> Sender: "Debbugs-submit" Resent-Message-ID: List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: 32020@debbugs.gnu.org * etc/completion/bash/guix (_guix_complete): Complete files names after 'guix build -L'. --- etc/completion/bash/guix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/etc/completion/bash/guix b/etc/completion/bash/guix index 70430c5c9..cc18fbc94 100644 --- a/etc/completion/bash/guix +++ b/etc/completion/bash/guix @@ -167,6 +167,12 @@ _guix_complete () else _guix_complete_available_package "$word_at_point" fi + elif _guix_is_command "build" + then + if _guix_is_dash_L + then + _guix_complete_file + fi elif _guix_is_command "download" then _guix_complete_file -- 2.18.0