me
/
guix
Archived
1
0
Fork 0

bash completion: Complete "guix home" sub-commands.

* etc/completion/bash/guix (_guix_complete): Treat "guix home" like
"guix system".
Ludovic Courtès 2022-01-17 17:23:59 +01:00
parent 3f536e01c1
commit 93d3a2b23c
No known key found for this signature in database
GPG Key ID: 090B11993D9AEBB5
1 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
# GNU Guix --- Functional package management for GNU # GNU Guix --- Functional package management for GNU
# Copyright © 2015, 2016, 2017, 2018, 2019, 2020, 2021 Ludovic Courtès <ludo@gnu.org> # Copyright © 2015-2022 Ludovic Courtès <ludo@gnu.org>
# Copyright © 2021 Tobias Geerinck-Rice <me@tobias.gr> # Copyright © 2021 Tobias Geerinck-Rice <me@tobias.gr>
# #
# This file is part of GNU Guix. # This file is part of GNU Guix.
@ -294,7 +294,7 @@ _guix_complete ()
elif [[ "$command" = "size" ]] elif [[ "$command" = "size" ]]
then then
_guix_complete_available_package_or_store_file "$word_at_point" _guix_complete_available_package_or_store_file "$word_at_point"
elif [[ "$command" = "system" ]] elif [[ "$command" = "system" || "$command" = "home" ]]
then then
case $((COMP_CWORD - command_index)) in case $((COMP_CWORD - command_index)) in
1) _guix_complete_subcommand;; 1) _guix_complete_subcommand;;