diff options
author | Tobias Geerinckx-Rice <me@tobias.gr> | 2021-10-03 13:59:54 +0200 |
---|---|---|
committer | Tobias Geerinckx-Rice <me@tobias.gr> | 2021-10-03 19:23:49 +0200 |
commit | d71cfaea3006bc02dc6d309d916809e1f799f04e (patch) | |
tree | c8a655f8cee5bea61eb15c1b6eb39113e0081f41 /etc/completion/bash | |
parent | 9e3355d2a35796276d17af13ac45814dbf6c4203 (diff) | |
download | guix-d71cfaea3006bc02dc6d309d916809e1f799f04e.tar.gz |
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/completion/bash')
-rw-r--r-- | etc/completion/bash/guix | 3 |
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 |