Cosmetic issue - file path too long on WSL and it overlaps on to next line. #47

Closed
opened 2026-01-30 21:40:36 +00:00 by claunia · 4 comments
Owner

Originally created by @lewis-carson on GitHub (Jan 1, 2018).

This only happens when using ZSH

version - Microsoft Windows [Version 10.0.16299.125]

  • What you're doing and what's happening: (Copy & paste specific commands and their output, or include screen shots)

When booting up WSL the prompt is overlapping on to the next line. This issue only seems to occur when using longer file paths (eg '/mnt/c/Users/Lewis').

  • What's wrong / what should be happening instead:

What should be happening is that the prompt and the path should be on the same line.

The right is what should be happening. https://imgur.com/a/ZeXi2

Originally created by @lewis-carson on GitHub (Jan 1, 2018). # This only happens when using ZSH > version - Microsoft Windows [Version 10.0.16299.125] * What you're doing and what's happening: (Copy & paste specific commands and their output, or include screen shots) >When booting up WSL the prompt is overlapping on to the next line. This issue only seems to occur when using longer file paths (eg '/mnt/c/Users/Lewis'). * What's wrong / what should be happening instead: >What should be happening is that the prompt and the path should be on the same line. The right is what should be happening. https://imgur.com/a/ZeXi2
Author
Owner

@zadjii-msft commented on GitHub (Jan 2, 2018):

@hexx112 what's your PS1 setting in your ~/.bashrc?

EDIT:
Whoops, missed the gigantic "This only happens in zsh" - isn't that how zsh is supposed to look?

@zadjii-msft commented on GitHub (Jan 2, 2018): @hexx112 what's your `PS1` setting in your ~/.bashrc? EDIT: Whoops, missed the *gigantic* "This only happens in zsh" - isn't that how zsh is supposed to look?
Author
Owner

@lewis-carson commented on GitHub (Jan 4, 2018):

@zadjii-msft Unfortunately, no. Screenshots I have seen display it on one line

@lewis-carson commented on GitHub (Jan 4, 2018): @zadjii-msft Unfortunately, no. Screenshots I have seen display it on one line
Author
Owner

@zadjii-msft commented on GitHub (Oct 27, 2021):

woah, how'd this issue sneak around in the backlog, untriaged for so long?

So, the left one looks like zsh (albeit, with some prompt customization), and the right looks like bash (with no prompt customization).

Am I missing anything here? How is your prompt configured in zsh?

(this issue's nearly 4 years old now, so I'm guessing you've figured this out by now)

@zadjii-msft commented on GitHub (Oct 27, 2021): _woah, how'd this issue sneak around in the backlog, untriaged for so long?_ So, the left one looks like `zsh` (albeit, with some prompt customization), and the right looks like `bash` (with no prompt customization). Am I missing anything here? How is your prompt configured in `zsh`? (this issue's nearly 4 years old now, so I'm guessing you've figured this out by now)
Author
Owner

@ghost commented on GitHub (Nov 3, 2021):

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment.

@ghost commented on GitHub (Nov 3, 2021): This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for **4 days**. It will be closed if no further activity occurs **within 3 days of this comment**.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#47