mirror of
https://github.com/fish-shell/fish-shell
synced 2024-11-14 17:07:44 +00:00
completions/git.fish: fix completions for "git config"
gui.fontui can be like "-family ..."
This commit is contained in:
parent
bae64f8a8a
commit
233945b58b
1 changed files with 1 additions and 1 deletions
|
@ -554,7 +554,7 @@ function __fish_git_config_keys
|
|||
# With -z, key and value are separated by space, not "="
|
||||
git config -lz | while read -lz key value
|
||||
# Print only first line of value(with an ellipsis) if multiline
|
||||
printf '%s\t%s\n' $key (string replace \n …\n $value)[1]
|
||||
printf '%s\t%s\n' $key (string replace \n …\n -- $value)[1]
|
||||
end
|
||||
# Print all recognized config keys; duplicates are not shown twice by fish
|
||||
printf '%s\n' (__fish_git help --config)[1..-2] # Last line is a footer; ignore it
|
||||
|
|
Loading…
Reference in a new issue