[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
03/09: bash completion: Complete file names after 'guix system COMMAND'.
From: |
Ludovic Courtès |
Subject: |
03/09: bash completion: Complete file names after 'guix system COMMAND'. |
Date: |
Mon, 6 Feb 2017 23:08:27 +0000 (UTC) |
civodul pushed a commit to branch master
in repository guix.
commit e109ed3922f2a3ff68a77f727ead27f2eb4a82ab
Author: Ludovic Courtès <address@hidden>
Date: Mon Feb 6 16:50:07 2017 +0100
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.
---
etc/completion/bash/guix | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/etc/completion/bash/guix b/etc/completion/bash/guix
index 01b0e20..9c851e3 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
- branch master updated (a24fda8 -> a062b6c), Ludovic Courtès, 2017/02/06
- 03/09: bash completion: Complete file names after 'guix system COMMAND'.,
Ludovic Courtès <=
- 06/09: services: bitlbee: Read the PID file., Ludovic Courtès, 2017/02/06
- 05/09: bash completion: Complete subcommands for the current word., Ludovic Courtès, 2017/02/06
- 02/09: bash completion: Complete 'guix gc' with file names., Ludovic Courtès, 2017/02/06
- 07/09: linux-container: Add 'container-excursion*'., Ludovic Courtès, 2017/02/06
- 01/09: file-systems: Add '%network-configuration-files' and '%network-file-mappings'., Ludovic Courtès, 2017/02/06
- 04/09: bash completion: Properly complete 'guix container exec'., Ludovic Courtès, 2017/02/06
- 09/09: services: bitlbee: Run in a container., Ludovic Courtès, 2017/02/06
- 08/09: Add (gnu build shepherd)., Ludovic Courtès, 2017/02/06