[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
08/08: bash completion: Complete long options with no short variant.
From: |
Ludovic Courtès |
Subject: |
08/08: bash completion: Complete long options with no short variant. |
Date: |
Fri, 01 May 2015 15:40:01 +0000 |
civodul pushed a commit to branch core-updates
in repository guix.
commit 868ef9aec79fac92efbe885120331310592fef98
Author: Ludovic Courtès <address@hidden>
Date: Fri May 1 17:39:39 2015 +0200
bash completion: Complete long options with no short variant.
* etc/completion/bash/guix (_guix_complete_option): Change grep regexp
to match options that don't have a short option name.
---
etc/completion/bash/guix | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/etc/completion/bash/guix b/etc/completion/bash/guix
index 2a3fa12..e4d9a49 100644
--- a/etc/completion/bash/guix
+++ b/etc/completion/bash/guix
@@ -35,7 +35,7 @@ _guix_complete_installed_package ()
_guix_complete_option ()
{
local options="$(${COMP_WORDS[0]} ${COMP_WORDS[1]} --help \
- | grep '^ -' \
+ | grep '^ \+-' \
| sed
-e's/^.*--\([a-zA-Z0-9_-]\+\)\(=\?\).*/--\1\2/g' )"
compopt -o nospace
COMPREPLY=($(compgen -W "$options" -- "${COMP_WORDS[$word_count - 1]}"))
- branch core-updates updated (9e63a38 -> 868ef9a), Ludovic Courtès, 2015/05/01
- 01/08: Merge branch 'master' into core-updates, Ludovic Courtès, 2015/05/01
- 02/08: gnu: ganv: Set the RUNPATH of binaries to $libdir., Ludovic Courtès, 2015/05/01
- 04/08: list-packages: Add status link only for systems supported on Hydra., Ludovic Courtès, 2015/05/01
- 03/08: packages: Add '%hydra-supported-systems'., Ludovic Courtès, 2015/05/01
- 05/08: gnu: mariadb: Remove now unneeded workaround., Ludovic Courtès, 2015/05/01
- 06/08: check-available-binaries: Use %HYDRA-SUPPORTED-SYSTEMS., Ludovic Courtès, 2015/05/01
- 08/08: bash completion: Complete long options with no short variant.,
Ludovic Courtès <=
- 07/08: gnu: polkit-qt: Add $libdir to RUNPATH., Ludovic Courtès, 2015/05/01