summary refs log tree commit diff
path: root/etc/completion/bash
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2018-11-05 17:01:38 +0100
committerLudovic Courtès <ludo@gnu.org>2018-11-06 00:04:11 +0100
commit7082873ea2771ebef900333e0fa7468d6395f330 (patch)
treeee9917f2177945735de2885f6939fb7adffabd0b /etc/completion/bash
parentadde15186da7529b85097fdafffc2a13b0e60bdf (diff)
downloadguix-7082873ea2771ebef900333e0fa7468d6395f330.tar.gz
bash completion: Restore completion of available packages for 'guix build'.
Fixes a regression introduced in
9b0a755f642542dd96065ad05ec9d844d8077fd7 whereby 'guix build TAB' would
not suggest any completion.

* etc/completion/bash/guix (_guix_complete): Arrange so 'guix build TAB'
completes available packages.
Diffstat (limited to 'etc/completion/bash')
-rw-r--r--etc/completion/bash/guix4
1 files changed, 3 insertions, 1 deletions
diff --git a/etc/completion/bash/guix b/etc/completion/bash/guix
index a593b8112c..3d2b3ddda7 100644
--- a/etc/completion/bash/guix
+++ b/etc/completion/bash/guix
@@ -1,5 +1,5 @@
 # GNU Guix --- Functional package management for GNU
-# Copyright © 2015, 2016, 2017 Ludovic Courtès <ludo@gnu.org>
+# Copyright © 2015, 2016, 2017, 2018 Ludovic Courtès <ludo@gnu.org>
 #
 # This file is part of GNU Guix.
 #
@@ -172,6 +172,8 @@ _guix_complete ()
                 if _guix_is_dash_L
                 then
                     _guix_complete_file
+		else
+		    _guix_complete_available_package "$word_at_point"
                 fi
 	    elif _guix_is_command "download"
 	    then