[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
04/07: bash_completion: Complete options for ‘guix environment’.
From: |
guix-commits |
Subject: |
04/07: bash_completion: Complete options for ‘guix environment’. |
Date: |
Wed, 16 Jun 2021 06:14:40 -0400 (EDT) |
nckx pushed a commit to branch master
in repository guix.
commit fa0dc1229c0dc44a7358d183e54d9e02d1199e39
Author: Tobias Geerinckx-Rice <me@tobias.gr>
AuthorDate: Mon Jun 14 10:59:39 2021 +0200
bash_completion: Complete options for ‘guix environment’.
Note that there are still plenty of bugs that this series didn't fix,
e.g.:
$ guix time-machine -- system reconf<Tab>
* etc/completion/bash/guix (_guix_complete): Call _guix_complete_option
if the word at point looks like an option.
---
etc/completion/bash/guix | 3 +++
1 file changed, 3 insertions(+)
diff --git a/etc/completion/bash/guix b/etc/completion/bash/guix
index f7d1eeb..a9386e7 100644
--- a/etc/completion/bash/guix
+++ b/etc/completion/bash/guix
@@ -266,6 +266,9 @@ _guix_complete ()
if _guix_is_dash_L || _guix_is_dash_m || _guix_is_dash_p ||
_guix_is_dash_l
then
_guix_complete_file
+ elif _guix_is_option "$word_at_point"
+ then
+ _guix_complete_option "$command_index" "$word_at_point"
else
_guix_complete_available_package "$word_at_point"
fi
- branch master updated (72a5095 -> 111521d), guix-commits, 2021/06/16
- 01/07: gnu: bash-completion: Look in user directories first., guix-commits, 2021/06/16
- 02/07: bash completion: Really support subcommands., guix-commits, 2021/06/16
- 03/07: bash completion: Complete options for the right command., guix-commits, 2021/06/16
- 04/07: bash_completion: Complete options for ‘guix environment’.,
guix-commits <=
- 05/07: gnu: Respect ‘rootdelay’ kernel command-line argument., guix-commits, 2021/06/16
- 07/07: gnu: epson-inkjet-printer-escpr: Update to 1.7.11., guix-commits, 2021/06/16
- 06/07: gnu: cryptsetup: Update LUKS2 comment., guix-commits, 2021/06/16