Skip to content

Change $0 handler#212

Open
grigorii-horos wants to merge 2 commits into
babarot:mainfrom
zpm-zsh:master
Open

Change $0 handler#212
grigorii-horos wants to merge 2 commits into
babarot:mainfrom
zpm-zsh:master

Conversation

@grigorii-horos
Copy link
Copy Markdown

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.

1 participant