diff options
author | Ludovic Courtès <ludo@gnu.org> | 2020-06-27 17:18:52 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2020-06-27 23:42:20 +0200 |
commit | 4b4f890cb03d7c5b958fe08553dfad2f39a1d4f2 (patch) | |
tree | f482406a21bc63c0ce5e9c4abf1d2a3077e72541 /etc/completion/bash | |
parent | 5c10200b5499826a2e430a46fdb664d269857278 (diff) | |
download | guix-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/guix | 8 |
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 |