guix-commits
[Top][All Lists]
Advanced

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

06/23: bash completion: Complete ‘guix size’ file names.


From: guix-commits
Subject: 06/23: bash completion: Complete ‘guix size’ file names.
Date: Sun, 3 Oct 2021 13:28:19 -0400 (EDT)

nckx pushed a commit to branch master
in repository guix.

commit d71cfaea3006bc02dc6d309d916809e1f799f04e
Author: Tobias Geerinckx-Rice <me@tobias.gr>
AuthorDate: Sun Oct 3 13:59:54 2021 +0200

    bash completion: Complete ‘guix size’ file names.
    
    * etc/completion/bash/guix (_guix_complete): Complete store file names
    after the ‘size’ command.
---
 etc/completion/bash/guix | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/etc/completion/bash/guix b/etc/completion/bash/guix
index fcf9482..d5ec427 100644
--- a/etc/completion/bash/guix
+++ b/etc/completion/bash/guix
@@ -279,6 +279,9 @@ _guix_complete ()
            elif [[ "$command" = "download" || "$command" = "gc" || "$command" 
= "hash" ]]
            then
                _guix_complete_file
+           elif [[ "$command" = "size" ]]
+           then
+               _guix_complete_available_package_or_store_file "$word_at_point"
            elif [[ "$command" = "system" ]]
            then
                case $COMP_CWORD in



reply via email to

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