subst
Summary
Section titled “Summary”subst'' performs text substitution in the plugin’s source script before it is sourced,
replacing one string with another without modifying the file on disk.
Syntax / Usage
Section titled “Syntax / Usage”zi ice subst"old-string → new-string"zi ice subst"autoload → autoload -Uz"Details
Section titled “Details”The substitution is applied to the sourced content at load time. The original file on disk is unchanged. This allows fixing or patching plugin scripts that use patterns incompatible with the user’s Zsh setup.
The separator is → (Unicode right arrow) or -> (ASCII arrow).
Examples
Section titled “Examples”# Ensure all autoload calls use -Uz flagszi ice subst"autoload → autoload -Uz"zi light user/old-pluginSee Also
Section titled “See Also”- aliases