mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-23 21:17:11 -05:00
bash completion: Complete ‘guix style -f’ with files.
* etc/completion/bash/guix (_guix_is_dash_f): Recognise ‘--whole-file’ as a member of the ‘-f’ family. (_guix_complete): Add a new clause for ‘guix style’. Reported by cmiller in #guix. Change-Id: I3f55f7fd7fb8610dc13770ebfe70d9f65c1497af
This commit is contained in:
parent
d993ed43b2
commit
fa0563e7fa
1 changed files with 10 additions and 1 deletions
|
@ -139,7 +139,8 @@ _guix_is_dash_f ()
|
|||
{
|
||||
_guix_is_short_option f ||
|
||||
_guix_is_long_option file ||
|
||||
_guix_is_long_option install-from-file
|
||||
_guix_is_long_option install-from-file ||
|
||||
_guix_is_long_option whole-file
|
||||
}
|
||||
|
||||
_guix_is_dash_l ()
|
||||
|
@ -333,6 +334,14 @@ _guix_complete ()
|
|||
else
|
||||
_guix_complete_available_package "$word_at_point"
|
||||
fi
|
||||
elif [[ "$command" = "style" ]]
|
||||
then
|
||||
if _guix_is_dash_f
|
||||
then
|
||||
_guix_complete_file
|
||||
else
|
||||
_guix_complete_available_package "$word_at_point"
|
||||
fi
|
||||
else
|
||||
_guix_complete_available_package "$word_at_point"
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue