Skip to content

Optionally emit width-calculation escape sequences for bash #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 29, 2021

Conversation

mt-inside
Copy link

When I use gitprompt-rs with bash, prompt -width calculation doesn't always work right, causing really annoying wrapping and editing issues.

This patch allows bash-style escapes to be emitted around color escapes, just like for zsh.

@9ary
Copy link
Owner

9ary commented Jan 29, 2021

Looks good to me, thanks!

@9ary 9ary merged commit e75c3f3 into 9ary:master Jan 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants