Skip to content
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

Is promptline smart enough to know about its size? #82

Open
ghost opened this issue Jan 31, 2020 · 0 comments
Open

Is promptline smart enough to know about its size? #82

ghost opened this issue Jan 31, 2020 · 0 comments

Comments

@ghost
Copy link

ghost commented Jan 31, 2020

I have noticed that if I have a repository in version control and the upper directory names + the branch name are long enough - the shell prompt just gets ruined and doesn't show up on screen. Sometimes all I see is just <.

Does promptline know when this happens (by taking into account terminal width) and can it do anything to dynamically shorten displayed items so it fits?

For example: I am happy with current behavior as long as I see the prompt line. If it gets too big as I navigate deeper, I'd like promptline to show a shorter version of cwd or not show it at all if it can't fit. Cwd in prompt is handy, but when I'm inside a repository, I'd like to see the branch name (highest priority) and the user name (if both fit), then cwd (eventually in shortened form, so it fits on screen).

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

No branches or pull requests

0 participants