diff --git a/share/completions/git.fish b/share/completions/git.fish index 9814d5ee2..ec482ceb8 100644 --- a/share/completions/git.fish +++ b/share/completions/git.fish @@ -621,7 +621,9 @@ function __fish_git_aliases __fish_git config -z --get-regexp '^alias\.' 2>/dev/null | while read -lz key value begin set -l name (string replace -r '^.*\.' '' -- $key) - printf "%s\t%s\n" $name "Alias for $value" + # Only use the first line of the value as the description. + set -l val (printf '%s\n' $value)[1] + printf "%s\t%s\n" $name "Alias for $val" end end end