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

Clarify how zstyle -T ':grml:chpwd:dirstack' is supposed to be set #136

Open
nh2 opened this issue Feb 11, 2022 · 1 comment
Open

Clarify how zstyle -T ':grml:chpwd:dirstack' is supposed to be set #136

nh2 opened this issue Feb 11, 2022 · 1 comment

Comments

@nh2
Copy link

nh2 commented Feb 11, 2022

For most zstyles, I can set them any time and then they apply.

But in d005e0b, the if zstyle -T ':grml:chpwd:dirstack' enable is on the top-level of .zshrc, so it will only be read once at the time of .zshrc evaluation:

if zstyle -T ':grml:chpwd:dirstack' enable; then

I believe this means that it must be done in .zshrc.pre; later invocations setting that zstyle will have no effect at all.

Is this correct?

If yes, could it be changed such that zstyle ':grml:chpwd:dirstack' enable false works also in the user's normal .zshrc.local?

If not, it might make sense to extend the explanation in d005e0b#diff-0e012aed4e549254b0e807a707638324d4a262e96dc61bdcf75f10c6b17ce017R139 to explain this restriction.

@mika
Copy link
Member

mika commented Feb 11, 2022

Good point, thanks for raising this, @nh2.

Yes, zstyle ':grml:chpwd:dirstack' ... is indeed supposed to take place in .zshrc.pre and that's what I'm also using as such.

@ft any further ideas/information from your side? :)

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

2 participants