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

Add new "relative" option to cwd_truncate #47

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

olivierdagenais
Copy link

Overview

This keeps the window title shorter: once I'm in a Git repo, I only care about the repo folder's name. It also makes sure the "shell label" uses the same value of the computed cwd.

Manual testing

This is how I use it in my ~/.git-prompt.conf file:

cwd_cmd='cwd_truncate relative'

...and it looks like this:

image

Mission accomplished!

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

Successfully merging this pull request may close these issues.

1 participant