From fa0dc1229c0dc44a7358d183e54d9e02d1199e39 Mon Sep 17 00:00:00 2001 From: Tobias Geerinckx-Rice Date: Mon, 14 Jun 2021 10:59:39 +0200 Subject: bash_completion: Complete options for ‘guix environment’. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Note that there are still plenty of bugs that this series didn't fix, e.g.: $ guix time-machine -- system reconf * 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 f7d1eeb220..a9386e7794 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 -- cgit 1.4.1