summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorTobias Geerinckx-Rice <me@tobias.gr>2021-10-03 13:59:54 +0200
committerTobias Geerinckx-Rice <me@tobias.gr>2021-10-03 19:23:49 +0200
commitd71cfaea3006bc02dc6d309d916809e1f799f04e (patch)
treec8a655f8cee5bea61eb15c1b6eb39113e0081f41 /etc
parent9e3355d2a35796276d17af13ac45814dbf6c4203 (diff)
bash completion: Complete ‘guix size’ file names.
* etc/completion/bash/guix (_guix_complete): Complete store file names after the ‘size’ command.
Diffstat (limited to 'etc')
-rw-r--r--etc/completion/bash/guix3
1 files changed, 3 insertions, 0 deletions
diff --git a/etc/completion/bash/guix b/etc/completion/bash/guix
index fcf9482639..d5ec427e0c 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