diff --git a/zsh-autosuggestions.plugin.zsh b/zsh-autosuggestions.plugin.zsh index 16c2256..a7751d6 100644 --- a/zsh-autosuggestions.plugin.zsh +++ b/zsh-autosuggestions.plugin.zsh @@ -1 +1,6 @@ -source ${0:A:h}/zsh-autosuggestions.zsh +# According to the standard: +# https://github.com/zdharma/Zsh-100-Commits-Club/blob/master/Zsh-Plugin-Standard.adoc +0="${ZERO:-${${0:#$ZSH_ARGZERO}:-${(%):-%N}}}" +0="${${(M)0:#/*}:-$PWD/$0}" + +source ${0:h}/zsh-autosuggestions.zsh