Skip to content

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

Open
@nh2

Description

@nh2

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions