agnosterj-zsh-theme icon indicating copy to clipboard operation
agnosterj-zsh-theme copied to clipboard

Expanded option

Open iPublicis opened this issue 4 years ago • 5 comments

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?

iPublicis avatar Jun 18 '20 14:06 iPublicis

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:

  • You know someone who wants to turn on "expand" for their Agnoster-J use or:
  • You have multiple user accounts/logins that you use, and you want to turn on "expand" for some of them, on a per-account basis?

apjanke avatar Jun 21 '20 00:06 apjanke

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

iPublicis avatar Jun 21 '20 23:06 iPublicis

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!

apjanke avatar Jun 22 '20 21:06 apjanke

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

iPublicis avatar Jun 29 '20 13:06 iPublicis

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

apjanke avatar Jun 29 '20 13:06 apjanke