diff options
| author | Tobias Geerinckx-Rice <me@tobias.gr> | 2021-12-08 21:05:20 +0100 |
|---|---|---|
| committer | Tobias Geerinckx-Rice <me@tobias.gr> | 2021-12-08 21:09:55 +0100 |
| commit | f3af1fb0bcbcbe18ab773374efe606e90107cfb6 (patch) | |
| tree | 9681ce4ddc05589755a6d59d3ff122ecba4b3359 /etc | |
| parent | 0ba4e94e8448e6c27cceb690b085c8d8cf66e577 (diff) | |
bash completion: Complete ‘guix shell -f’.
* etc/completion/bash/guix (_guix_complete): Suggest a file name
following ‘guix shell […] -f’.
Diffstat (limited to 'etc')
| -rw-r--r-- | etc/completion/bash/guix | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/etc/completion/bash/guix b/etc/completion/bash/guix index 6a11e1b23b3..f262d4d95a7 100644 --- a/etc/completion/bash/guix +++ b/etc/completion/bash/guix | |||
| @@ -275,9 +275,13 @@ _guix_complete () | |||
| 275 | fi | 275 | fi |
| 276 | elif [[ "$command" = "environment" || "$command" = "shell" ]] | 276 | elif [[ "$command" = "environment" || "$command" = "shell" ]] |
| 277 | then | 277 | then |
| 278 | if _guix_is_dash_L || _guix_is_dash_m || _guix_is_dash_p || _guix_is_dash_l | 278 | if _guix_is_dash_f && [[ "$command" = "shell" ]] |
| 279 | then | 279 | then |
| 280 | _guix_complete_file | 280 | # The otherwise identical ‘guix environment’ lacks the ‘-f’ option. |
| 281 | _guix_complete_file | ||
| 282 | elif _guix_is_dash_L || _guix_is_dash_m || _guix_is_dash_p || _guix_is_dash_l | ||
| 283 | then | ||
| 284 | _guix_complete_file | ||
| 281 | elif _guix_is_option "$word_at_point" | 285 | elif _guix_is_option "$word_at_point" |
| 282 | then | 286 | then |
| 283 | _guix_complete_option "$command_index" "$word_at_point" | 287 | _guix_complete_option "$command_index" "$word_at_point" |
