aboutsummaryrefslogtreecommitdiff
path: root/etc/completion/bash
diff options
context:
space:
mode:
Diffstat (limited to 'etc/completion/bash')
-rw-r--r--etc/completion/bash/guix5
1 files changed, 4 insertions, 1 deletions
diff --git a/etc/completion/bash/guix b/etc/completion/bash/guix
index 01b0e20394..9c851e3717 100644
--- a/etc/completion/bash/guix
+++ b/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