-
Notifications
You must be signed in to change notification settings - Fork 340
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
Issue in mac command #40
Comments
Square brackets are needed for non-printing characters (the colour codes). They will prevent the terminal from counting those characters when calculating the number of columns. For characters which are displayed, the terminal needs to count them, so I don't think they should be in square brackets. Was there any bug you experienced related to this? |
Super late to the thread. I was also having an issue where the variable awebdeveloper's solve made it work. |
Can you post the prompt(s) that worked and didn't work for you? Putting |
Sure, My current working ps1 export and the previous export (that was not working but now is, likely user error) as I said, now both of these exports work correctly. when I set this up I must have forgotten to source or restart my session. |
It looks like the confusion has arisen from using If you use But in either case, square brackets are not desirable around visible text.
|
Sq brackets are missing around $git_branch and $git_dirty
\[$txtcyn\]\[$git_branch\]\[$txtred\]\[$git_dirty\]\[$txtrst\]\$
The text was updated successfully, but these errors were encountered: