mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 07:26:13 -05:00
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.
This commit is contained in:
parent
3454f7edf9
commit
e109ed3922
1 changed files with 4 additions and 1 deletions
|
@ -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…
Reference in a new issue