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
Escaped characters in path are replaced with whatever they translate to, but only in git bash, windows-terminal #738
Comments
The issue is only with bash.... how did you configure your path to be "d:" in git bash? Same for any segments:
https://tldp.org/HOWTO/Bash-Prompt-HOWTO/bash-prompt-escape-sequences.html |
This issue has been automatically locked since there has not been any recent activity (i.e. last half year) after it was closed. It helps our maintainers focus on the active issues. |
Prerequisites
CONTRIBUTING
guideDescription
The clickable path in the terminal (for example
D:\dev
) works fine on a powershell core instance, but it breaks in git bash:This path, for example,
D:\dev
shows normally on powershell, but the "\d" part of it becomes "Mon May 24", the current day.It also does not happen when git bash is used inside vscode, only in windows-terminal. Happens with some other themes as well, but
pixelrobots
is the one I use.Environment
Steps to Reproduce
eval "$(oh-my-posh --init --shell bash --config 'D:\\scoop\\apps\\oh-my-posh\\current\\themes\\pixelrobots.omp.json')"
to ~/.bashrc (D:\scoop is my scoop home)Expected behavior: Clickable path in terminal should work "unescaped" (?), like it works with powershell core
Actual behavior: Clickable path in terminal replaces some escaped characters (such as "\d" with current day), producing incorrect file paths
The text was updated successfully, but these errors were encountered: