diff options
| author | Marius Bakke <mbakke@fastmail.com> | 2017-08-20 12:57:00 +0200 |
|---|---|---|
| committer | Marius Bakke <mbakke@fastmail.com> | 2017-08-22 23:13:42 +0200 |
| commit | ed8634c404410ed5e0d3ab06e43bd50d4eed9c42 (patch) | |
| tree | 03dbfd22a4343b3b66d0434bc1996b89311c2329 /etc/completion/bash | |
| parent | 2e4569829e12afd23bb4671704a6f48c6b29c786 (diff) | |
bash completion: Complete files names after 'guix download'.
* etc/completion/bash/guix (_guix_complete): When the command is "download",
use __guix_complete_file.
Diffstat (limited to 'etc/completion/bash')
| -rw-r--r-- | etc/completion/bash/guix | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/etc/completion/bash/guix b/etc/completion/bash/guix index 6a5f281c4fe..6b84193dbe0 100644 --- a/etc/completion/bash/guix +++ b/etc/completion/bash/guix | |||
| @@ -158,6 +158,9 @@ _guix_complete () | |||
| 158 | else | 158 | else |
| 159 | _guix_complete_available_package "$word_at_point" | 159 | _guix_complete_available_package "$word_at_point" |
| 160 | fi | 160 | fi |
| 161 | elif _guix_is_command "download" | ||
| 162 | then | ||
| 163 | _guix_complete_file | ||
| 161 | elif _guix_is_command "system" | 164 | elif _guix_is_command "system" |
| 162 | then | 165 | then |
| 163 | case $COMP_CWORD in | 166 | case $COMP_CWORD in |
