[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/06: bash completion: Adjust to new 'guix help' output.
From: |
guix-commits |
Subject: |
02/06: bash completion: Adjust to new 'guix help' output. |
Date: |
Thu, 24 Sep 2020 11:55:10 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit 8e0c5033b17fcf1e4596ee9a3d52157900acc6fa
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Thu Sep 24 16:26:34 2020 +0200
bash completion: Adjust to new 'guix help' output.
This is a followup to 3794ce93be8216d8378df7b808ce7f53b1e05a53, which
broke command completion.
Reported by Oleg Pykhalov <go.wigust@gmail.com>.
* etc/completion/bash/guix (_guix_complete_command): Update to match
output of 'guix help' as introduced in
3794ce93be8216d8378df7b808ce7f53b1e05a53.
---
etc/completion/bash/guix | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/etc/completion/bash/guix b/etc/completion/bash/guix
index aa217bd..fdbdf46 100644
--- a/etc/completion/bash/guix
+++ b/etc/completion/bash/guix
@@ -27,8 +27,9 @@ _guix_complete_command ()
if [ -z "$_guix_commands" ]
then
# Cache the list of commands to speed things up.
- _guix_commands="$(guix --help 2> /dev/null \
- | grep '^ ' | cut -c 2-)"
+ _guix_commands="$(guix --help 2> /dev/null \
+ | grep '^ ' \
+ | sed '-es/^ *\([a-z-]\+\).*$/\1/g')"
fi
COMPREPLY=($(compgen -W "$_guix_commands" -- "$word_at_point"))
}
- branch master updated (aea2a0f -> ec9bc07), guix-commits, 2020/09/24
- 05/06: gnu: awesome: Fix command completion in the prompt and Lua paths, guix-commits, 2020/09/24
- 04/06: gnu: Add gtg., guix-commits, 2020/09/24
- 06/06: gnu: Add python-robber., guix-commits, 2020/09/24
- 01/06: gnu: openmpi: Have 'mpirun' look for executables under $prefix., guix-commits, 2020/09/24
- 02/06: bash completion: Adjust to new 'guix help' output.,
guix-commits <=
- 03/06: gnu: Add python-liblarch., guix-commits, 2020/09/24