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

Ensure global startup RCs see the right ZDOTDIR #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Aug 5, 2022

  1. Ensure global startup RCs see the right ZDOTDIR

    We do this by disabling zsh's builtin behavior to read these startup
    files and instead doing them ourselves. This allow us to exert control
    over what ZDOTDIR is set to (we cannot just set ZDOTDIR to the right
    thing before global startup scripts are executed because this would
    cause zsh to not execute the custom startup scripts we wrote out to
    the temporary directory).
    
    In order to maintain compatibility with existing zsh behavior, we
    stash the state of the GLOBAL_RCS option at the end of our custom
    startup scripts but before disabling the option. We then restore its
    state at the beginning of the next startup script (so immediately
    after zsh *would* have executed the relevant global startup script).
    
    Fixes romkatv#3
    strugee committed Aug 5, 2022
    Configuration menu
    Copy the full SHA
    eaccd20 View commit details
    Browse the repository at this point in the history