Browse Source

bash completion: Complete file names after 'guix system COMMAND'.

* etc/completion/bash/guix (_guix_complete): When the command is
"system" and $COMP_CWORD > 2, use _guix_complete_file.
wip-git-https
Ludovic Courtès 5 years ago
parent
commit
e109ed3922
No known key found for this signature in database GPG Key ID: 90B11993D9AEBB5
  1. 5
      etc/completion/bash/guix

5
etc/completion/bash/guix

@ -154,7 +154,10 @@ _guix_complete ()
fi
elif _guix_is_command "system"
then
_guix_complete_subcommand
case $COMP_CWORD in
2) _guix_complete_subcommand;;
*) _guix_complete_file;; # TODO: restrict to *.scm
esac
elif _guix_is_command "import"
then
_guix_complete_subcommand

Loading…
Cancel
Save