Replies: 1 comment 4 replies
-
|
Haven't experimented with this. If it works, all the functions - _abbr:
+ _abbr_internal: # or _abbr_temp:-- Do you customize either typeset -ga ABBR_REGULAR_ABBREVIATION_GLOB_PREFIXES=( ' ' )makes your top 40 but typeset -ga ABBR_REGULAR_ABBREVIATION_SCALAR_PREFIXES=( 'sudo ' )doesn't. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
zsh-abbrcallsunfunctionmany times to clean up private functions.While this effectively prevents global namespace pollution, each
unfunctioninvocation adds overhead during plugin initialization.The following are my first 40 items of XTRACE output after formatting.
I think it can be used as a little reference:
Details
I don't know the underlying mechanics, but apparently we can replace individual calls with a pattern-based deletion (e.g.
unfunction -m "_abbr:*").This should provide a marginal improvement to initialization speed, and I'd love to know if anyone else can add to this.
Beta Was this translation helpful? Give feedback.
All reactions