nckx pushed a commit to branch master
in repository guix.

commit d71cfaea3006bc02dc6d309d916809e1f799f04e
Author: Tobias Geerinckx-Rice <[email protected]>
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