From 4b4f890cb03d7c5b958fe08553dfad2f39a1d4f2 Mon Sep 17 00:00:00 2001 From: Ludovic Courtès Date: Sat, 27 Jun 2020 17:18:52 +0200 Subject: bash completion: Complete 'guix environment' properly. * etc/completion/bash/guix (_guix_complete): Add case for "guix environment". --- etc/completion/bash/guix | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'etc') diff --git a/etc/completion/bash/guix b/etc/completion/bash/guix index df35919eb2..5aebd074e9 100644 --- a/etc/completion/bash/guix +++ b/etc/completion/bash/guix @@ -222,6 +222,14 @@ _guix_complete () else _guix_complete_available_package "$word_at_point" fi + elif _guix_is_command "environment" + then + if _guix_is_dash_L || _guix_is_dash_m || _guix_is_dash_p + then + _guix_complete_file + else + _guix_complete_available_package "$word_at_point" + fi elif _guix_is_command "download" then _guix_complete_file -- cgit 1.4.1