ohmyzsh/plugins/zsh_reload/zsh_reload.plugin.zsh
Monson Shao be4a952972
feat(cli)!: add omz reload command and deprecate zsh_reload plugin ()
BREAKING CHANGE: the `zsh_reload` plugin is deprecated. Instead of using its `src`
function, use `omz reload` or `exec zsh` to reload zsh after making changes to
your `.zshrc` file.

Closes 
2021-10-04 16:24:05 +02:00

7 lines
283 B
Bash

print ${(%):-"%F{yellow}The \`zsh_reload\` plugin is deprecated and will be removed."}
print ${(%):-"Use \`%Bomz reload%b\` or \`%Bexec zsh%b\` instead.%f"}
src() {
print ${(%):-"%F{yellow}$0 is deprecated. Use \`%Bomz reload%b\` or \`%Bexec zsh%b\` instead.%f\n"}
omz reload
}