From 48d7a32be84778caa1df04f8a0593bbf45b96e89 Mon Sep 17 00:00:00 2001 From: Adam Kruszewski Date: Sat, 9 Apr 2016 10:37:20 +0200 Subject: [PATCH 1/2] Adjust plugin.zsh file to run on zsh 5.1 in mSYS2. A sole filename caused "command not found" errors while loading with zplug or oh-no-zsh on zsh 5.1.1 inside mSYS2 (Windows). Sourcing the main file seems to work fine. --- zsh-syntax-highlighting.plugin.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zsh-syntax-highlighting.plugin.zsh b/zsh-syntax-highlighting.plugin.zsh index cc95cd4..38b03f0 120000 --- a/zsh-syntax-highlighting.plugin.zsh +++ b/zsh-syntax-highlighting.plugin.zsh @@ -1 +1 @@ -zsh-syntax-highlighting.zsh \ No newline at end of file +source $(dirname $0)/zsh-syntax-highlighting.zsh From acc279a320052e71bc7c0f5d0117b4625464f75b Mon Sep 17 00:00:00 2001 From: Adam Kruszewski Date: Sat, 16 Apr 2016 23:05:41 +0200 Subject: [PATCH 2/2] Changed plugin.zsh file according to Matthew Martin (@phy1729) suggestion. Command only plugin.zsh file didn't work for zsh 5.1.1 on msys2 env. --- zsh-syntax-highlighting.plugin.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zsh-syntax-highlighting.plugin.zsh b/zsh-syntax-highlighting.plugin.zsh index 38b03f0..eb5fe6f 120000 --- a/zsh-syntax-highlighting.plugin.zsh +++ b/zsh-syntax-highlighting.plugin.zsh @@ -1 +1 @@ -source $(dirname $0)/zsh-syntax-highlighting.zsh +source $0:A:h/zsh-syntax-highlighting.zsh