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

Feature Request: Truncate prompt path #660

Open
12bchl opened this issue Jun 13, 2023 · 3 comments
Open

Feature Request: Truncate prompt path #660

12bchl opened this issue Jun 13, 2023 · 3 comments

Comments

@12bchl
Copy link

12bchl commented Jun 13, 2023

Expose function to "hot truncate" and one to reset.

Will be useful for those deep paths. Would be great to pass argument "diralias" and have that as a temporary home.
So if I traverse further, the new folders get tacked on.

Then one to reset of course.

My apologies if this is already possible by some other means, couldn't find a way myself!

Love the prompt, appreciate your work.

@martinemde
Copy link

Is it possible to simply set the path in the prompt to be only the dir? I don't need "hot truncate" myself.

@TimSpence
Copy link
Contributor

Are you looking to truncate the path at a fixed number of characters, only show the last segment, or show the last n segments?

Any of these would probably require some refactoring of pure.zsh since the PWD environment variable is evaluated in multiple functions.

@martinemde
Copy link

My limited request was simply that I am able to make the prompt not so long. The default oh-my-zsh prompt does what I'm picturing.

Not a big deal though, I'm used to it now.

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

3 participants