apjanke / agnosterj-zsh-theme

AgnosterJ: apjanke's fork of the Agnoster Zsh Theme
MIT License
20 stars 7 forks source link

Expanded option #19

Open iPublicis opened 4 years ago

iPublicis commented 4 years ago

For a specific user it is needed to have full expanded directory always, even when on directories below the user's home directory.

Your full Style doesn't do that, I think.

How to had an expand option that produces an output like /home/john/Documentsinstead of ~/Documents?

apjanke commented 4 years ago

You are correct: full does not affect the abbreviation of the home directory to ~. I can add something to control this.

Can you clarify how you'd like this to work? Do you mean:

iPublicis commented 4 years ago

@apjanke the first situation. I know someone that due to specific conditions needs to have the ~ expanded always.

apjanke commented 4 years ago

I have added a $AGNOSTER_ABBREVIATE_HOME_DIR option in https://github.com/apjanke/agnosterj-zsh-theme/commit/7394aee5d48a22c12d4fcdd3c22a1d9c73f6447f that you can set to 0 to turn off this abbreviation behavior. It works with any of the path styles (though it has weird interaction with the shrink style). Give it a try!

iPublicis commented 4 years ago

Thank you. I forwarded this to the user so he can test it. Asked him to do further feedback to you.

apjanke commented 4 years ago

No problem. Happy to make this useful for more people!