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

Change $0 handler #212

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Change $0 handler #212

wants to merge 2 commits into from

Conversation

grigorii-horos
Copy link

WHAT

I changed $0 handling for zsh

WHY

In my plugin manager, I use a trick: I copy the main plugin file into a /tmp dir in a big one file. This increase file reading for ~10 milliseconds(yes, milliseconds!). But in this case, zsh plugins can lose plugin’s location. But we can prevent this using this $0 handling

https://zdharma-continuum.github.io/Zsh-100-Commits-Club/Zsh-Plugin-Standard.html#zero-handling

@github-actions github-actions bot added the area/bash Catch all for changes in bash files label Jun 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/bash Catch all for changes in bash files
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant