jimeh / git-aware-prompt

Display current Git branch name in your terminal prompt when in a Git working directory.
Creative Commons Zero v1.0 Universal
2.15k stars 340 forks source link

CRLF not working properly for long commands with custom PS1 #66

Closed chhajedji closed 5 years ago

chhajedji commented 5 years ago

In case of long commands, instead of writing it on next line (Use CRLF i.e., \r\n) when current window is over, prompt starts writing on the same line (just uses LF i.e., \r). Something similar might be happening with vim when I use it. I have registered same issue on unix stackexchange also, see it here. Please help

chhajedji commented 5 years ago

I have changed all color format from \e....m to formats present in colors.sh of this repo. Problem for command line has solved using this, but not sure about vim but hope this change solves vim issues also. So closing this issue.