mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 05:48:07 -05:00
bash completion: Complete ‘guix shell -f’.
* etc/completion/bash/guix (_guix_complete): Suggest a file name following ‘guix shell […] -f’.
This commit is contained in:
parent
0ba4e94e84
commit
f3af1fb0bc
1 changed files with 7 additions and 3 deletions
|
@ -275,9 +275,13 @@ _guix_complete ()
|
||||||
fi
|
fi
|
||||||
elif [[ "$command" = "environment" || "$command" = "shell" ]]
|
elif [[ "$command" = "environment" || "$command" = "shell" ]]
|
||||||
then
|
then
|
||||||
if _guix_is_dash_L || _guix_is_dash_m || _guix_is_dash_p || _guix_is_dash_l
|
if _guix_is_dash_f && [[ "$command" = "shell" ]]
|
||||||
then
|
then
|
||||||
_guix_complete_file
|
# The otherwise identical ‘guix environment’ lacks the ‘-f’ option.
|
||||||
|
_guix_complete_file
|
||||||
|
elif _guix_is_dash_L || _guix_is_dash_m || _guix_is_dash_p || _guix_is_dash_l
|
||||||
|
then
|
||||||
|
_guix_complete_file
|
||||||
elif _guix_is_option "$word_at_point"
|
elif _guix_is_option "$word_at_point"
|
||||||
then
|
then
|
||||||
_guix_complete_option "$command_index" "$word_at_point"
|
_guix_complete_option "$command_index" "$word_at_point"
|
||||||
|
|
Loading…
Reference in a new issue