-
Notifications
You must be signed in to change notification settings - Fork 130
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add %symbol% substituting to non-clone time ices like atload, etc
There are many such symbol var-like symbols: - %ID% β id-as ice - %USER% β username (in user/plugin ID) - %PLUGIN% β plugin name (in user/plugin ID) - %URL% β snippet url - %DIR% β plugin directory path - %ZPFX% β value of $ZPFX - %OS% β `$OSTYPE` - %MACH% β `$MACHTYPE` - %CPU% β `$CPUTYPE` - %VENDOR% β `$VENDOR` - %HOST% β `$HOST` - %UID% β `$UID` (numerical user id) - %GID% βΒ `$GID` (group #) With this patch many has been fixed (like %ID%, %USER%, %PLUGIN% were returning empty strings, possibly breaking packages, where this undocumented feature is used) and support for load-time ices (like `atload''`, etc.) have been added. For example: ```zsh zinit id-as'plugin-%UID%' atload'print Loaded from dir: %DIR%, plugin id: %ID%' for zdharma-continuum/null ``` output is: ``` Loaded from dir: /home/q/.local/share/zinit/plugins/plugin-500, plugin id: plugin-500 ```
- Loading branch information
Showing
2 changed files
with
58 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters