-
-
Notifications
You must be signed in to change notification settings - Fork 802
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: abbreviate path from git root #719
Comments
What are the contributions guidelines? Has this feature (with proposed implementation) a chance to be accepted? |
We should probably have some contribution guidelines. Short version, following the existing coding style in the function/script you're modifying. If there are tests for the function you are modifying, please add new Pester tests to cover the changed/new functionality. All tests must pass before PR would be accepted. And yes, IMO I would accept this feature. My only question is would it be enough to add an optional parameter to the |
@rkeithhill well I also did a PR adding an extra option for it. CI is green, but I'll look into adding a test specific to it. Maybe the path manipulations would be worth extracting into more easily testable functions BTW, unless that would add noise (I'm not familiar with all subtleties of pwsh). |
Closed by #720. Thanks for the contribution! |
System Details
Issue Description
My abbreviated path can be pretty long and maybe there could be an option to abbreviate based on the closest git root (including the folder name), so it would essentially show the path within the project I'm working.
e.g.
Could be further shortened to:
The text was updated successfully, but these errors were encountered: