[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/05: bash completion: Restore completion of available packages for 'gu
From: |
Ludovic Courtès |
Subject: |
01/05: bash completion: Restore completion of available packages for 'guix build'. |
Date: |
Mon, 5 Nov 2018 18:04:21 -0500 (EST) |
civodul pushed a commit to branch master
in repository guix.
commit 7082873ea2771ebef900333e0fa7468d6395f330
Author: Ludovic Courtès <address@hidden>
Date: Mon Nov 5 17:01:38 2018 +0100
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.
---
etc/completion/bash/guix | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/etc/completion/bash/guix b/etc/completion/bash/guix
index a593b81..3d2b3dd 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 <address@hidden>
+# Copyright © 2015, 2016, 2017, 2018 Ludovic Courtès <address@hidden>
#
# 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