diff options
Diffstat (limited to 'plugins/zsh_reload/zsh_reload.plugin.zsh')
-rw-r--r-- | plugins/zsh_reload/zsh_reload.plugin.zsh | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/plugins/zsh_reload/zsh_reload.plugin.zsh b/plugins/zsh_reload/zsh_reload.plugin.zsh index 83f8da733..6a058ec5e 100644 --- a/plugins/zsh_reload/zsh_reload.plugin.zsh +++ b/plugins/zsh_reload/zsh_reload.plugin.zsh @@ -1,12 +1,7 @@ -src() { - local cache="$ZSH_CACHE_DIR" - autoload -U compinit zrecompile - compinit -i -d "$cache/zcomp-$HOST" - - for f in ${ZDOTDIR:-~}/.zshrc "$cache/zcomp-$HOST"; do - zrecompile -p $f && command rm -f $f.zwc.old - done +print ${(%):-"%F{yellow}The \`zsh_reload\` plugin is deprecated and will be removed."} +print ${(%):-"Use \`%Bomz reload%b\` or \`%Bexec zsh%b\` instead.%f"} - # Use $SHELL if available; remove leading dash if login shell - [[ -n "$SHELL" ]] && exec ${SHELL#-} || exec zsh +src() { + print ${(%):-"%F{yellow}$0 is deprecated. Use \`%Bomz reload%b\` or \`%Bexec zsh%b\` instead.%f\n"} + omz reload } |