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

Support initExtraLast option for Zsh? #6140

Open
sheeeng opened this issue Nov 25, 2024 · 1 comment · May be fixed by #6141
Open

Support initExtraLast option for Zsh? #6140

sheeeng opened this issue Nov 25, 2024 · 1 comment · May be fixed by #6141
Assignees

Comments

@sheeeng
Copy link

sheeeng commented Nov 25, 2024

We can use initExtraFirst to ensure that I start .zshrc file with the following lines.

    initExtraFirst = ''
      echo "# ----------------------------------------------------------------------"
      echo "# Init Extra First...."

      # time ZSH_ZPROF_DEBUG=1 zsh -i -c exit
      if [[ -n ''${ZSH_ZPROF_DEBUG} ]]; then
        zmodload zsh/zprof
      fi
    ''

For example, I want these lines to be the last four lines in the generated .zshrc file.

# time ZSH_ZPROF_DEBUG=1 zsh -i -c exit
if [[ -n ${ZSH_ZPROF_DEBUG} ]]; then
  zprof
fi

How do we make sure that some configurations are set at the end of .zshrc file?

@sheeeng sheeeng changed the title Support initExtraLast option for Zsh? Support initExtraLast option for Zsh? Nov 26, 2024
@sheeeng sheeeng linked a pull request Nov 26, 2024 that will close this issue
6 tasks
@ulmentflam
Copy link

I am also in need of this feature and would like to see it added.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants