aboutsummaryrefslogtreecommitdiff
path: root/etc/completion/bash
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2020-06-27 17:18:52 +0200
committerLudovic Courtès <ludo@gnu.org>2020-06-27 23:42:20 +0200
commit4b4f890cb03d7c5b958fe08553dfad2f39a1d4f2 (patch)
treef482406a21bc63c0ce5e9c4abf1d2a3077e72541 /etc/completion/bash
parent5c10200b5499826a2e430a46fdb664d269857278 (diff)
downloadguix-4b4f890cb03d7c5b958fe08553dfad2f39a1d4f2.tar.gz
guix-4b4f890cb03d7c5b958fe08553dfad2f39a1d4f2.zip
bash completion: Complete 'guix environment' properly.
* etc/completion/bash/guix (_guix_complete): Add case for "guix environment".
Diffstat (limited to 'etc/completion/bash')
-rw-r--r--etc/completion/bash/guix8
1 files changed, 8 insertions, 0 deletions
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