From a3541a9dfbff2a8d1a90014ff7603957d2b05247 Mon Sep 17 00:00:00 2001 From: Grigorii Horos Date: Sat, 20 Nov 2021 16:10:45 +0200 Subject: [PATCH] Update $0 handler --- zsh-autosuggestions.plugin.zsh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) mode change 120000 => 100644 zsh-autosuggestions.plugin.zsh diff --git a/zsh-autosuggestions.plugin.zsh b/zsh-autosuggestions.plugin.zsh deleted file mode 120000 index e41b4f7..0000000 --- a/zsh-autosuggestions.plugin.zsh +++ /dev/null @@ -1 +0,0 @@ -zsh-autosuggestions.zsh \ No newline at end of file diff --git a/zsh-autosuggestions.plugin.zsh b/zsh-autosuggestions.plugin.zsh new file mode 100644 index 0000000..b974b8d --- /dev/null +++ b/zsh-autosuggestions.plugin.zsh @@ -0,0 +1,4 @@ +0="${ZERO:-${${0:#$ZSH_ARGZERO}:-${(%):-%N}}}" +0="${${(M)0:#/*}:-$PWD/$0}" + +source ${0:h}/zsh-autosuggestions.zsh