Message ID | CAKUjMCUEmrC8XfVKC4AkCzDyqWziPjDh5EiNmx02xQF=SVBVzQ@mail.gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | Using git-prompt.sh is wrapping text to early in Bash. | expand |
Richard Quadling <rquadling@gmail.com> writes: > This is my first attempt to supply a patch to git considering it > pretty much never fails me! > > If there is anything else needed, I hope I can provide it. Thanks and welcome to the Git development community. Documentation/SubmittingPatches is your friend to see what are expected in a patch, covering how to pick a title of a patch, how the changes are explained (and why it is so important to do so), what's the procedure to "sign-it-off", etc. Thanks.
diff --git a/contrib/completion/git-prompt.sh b/contrib/completion/git-prompt.sh index 71f179cba3..6585164efe 100644 --- a/contrib/completion/git-prompt.sh +++ b/contrib/completion/git-prompt.sh @@ -259,10 +259,10 @@ __git_ps1_colorize_gitstring () else # Using \001 and \002 around colors is necessary to prevent # issues with command line editing/browsing/completion! - local c_red=$'\001\e[31m\002' - local c_green=$'\001\e[32m\002' - local c_lblue=$'\001\e[1;34m\002' - local c_clear=$'\001\e[0m\002' + local c_red=$'\\001\e[31m\\002' + local c_green=$'\\001\e[32m\\002' + local c_lblue=$'\\001\e[1;34m\\002' + local c_clear=$'\\001\e[0m\\002' fi local bad_color=$c_red local ok_color=$c_green