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
On Windows drive root directory is missing backslash #4226
Labels
🐛 bug
Something isn't working as expected.
Comments
Just to confirm does this happen only when the line_break module is disabled? |
Hi. No, it's always present. It only becomes more apparent when you try to
construct the promt like in cmd or pwsh.
…On Thu, Aug 4, 2022, 19:43 andytom ***@***.***> wrote:
Just to confirm does this happen only when the line_break module is
disabled?
—
Reply to this email directly, view it on GitHub
<#4226 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACCUJLASSM4XPM25QKZBZ6TVXP6L3ANCNFSM55O3YCBQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
The recent path-slash bump changed how trailing slashes are handled (#4155, rhysd/path-slash#10). |
andytom
changed the title
On Windows, when line_break disabled, drive root directory is missing backslash
On Windows drive root directory is missing backslash
Aug 4, 2022
Hey @AbraxasDMG, I think this should be fixed in the most recent release now can you confirm if that is the case? |
Hi @andytom. It looks good now. Thank you very much! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
First and foremost, a big thanks for this nice piece of software. :)
Current Behavior
I'd like to emulate the look and feel of command prompt or powershell, when it comes to the prompt format. To have a full untruncated path in a single line with the command I am typing. In my case, I also would like not to have any modules reporting on things (like php, nodejs, etc. adding "via <module symbol>" to the prompt).
Something like:
C:\Users\john> dir *.*
I have managed to achieve that configuration with one exception.
When the current directory is a root directory of any Windows drive (C:\, D:\, etc.), there's a missing backslash '\', so instead of C:\> I get C:>.
Without going into too much debate on the theory of MS OS (Windows, DOS, etc.), I think that it would be correct to always display trailing backslash, even when modules are used (and they add "via ". C: is the drive identifier. The root directory on that drive is C:\, therefore, the backslash should not be optional.
Environment
Relevant Shell Configuration
Starship Configuration
The text was updated successfully, but these errors were encountered: