guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

27/295: bash completion: Complete 'guix environment' properly.


From: guix-commits
Subject: 27/295: bash completion: Complete 'guix environment' properly.
Date: Mon, 27 Jul 2020 06:25:08 -0400 (EDT)

dannym pushed a commit to branch wip-desktop
in repository guix.

commit 4b4f890cb03d7c5b958fe08553dfad2f39a1d4f2
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Sat Jun 27 17:18:52 2020 +0200

    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(+)

diff --git a/etc/completion/bash/guix b/etc/completion/bash/guix
index df35919..5aebd07 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]