From 083c47b00707f87f0f9f7ec08d91abbbcec64d7b Mon Sep 17 00:00:00 2001 From: Daniel Shahaf Date: Wed, 21 Oct 2015 06:55:00 +0000 Subject: [PATCH] regerssion: Look for .version and .revision-hash in the correct place. Fixes zsh-users/zsh-syntax-highlighting#215. --- zsh-syntax-highlighting.zsh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zsh-syntax-highlighting.zsh b/zsh-syntax-highlighting.zsh index a60d0bb..f622c0e 100644 --- a/zsh-syntax-highlighting.zsh +++ b/zsh-syntax-highlighting.zsh @@ -30,8 +30,8 @@ if [[ -o function_argzero ]]; then # $0 is reliable - ZSH_HIGHLIGHT_VERSION=$(<"$0:h"/.version) - ZSH_HIGHLIGHT_REVISION=$(<"$0:h"/.revision-hash) + ZSH_HIGHLIGHT_VERSION=$(<"$0:A:h"/.version) + ZSH_HIGHLIGHT_REVISION=$(<"$0:A:h"/.revision-hash) if [[ $ZSH_HIGHLIGHT_REVISION == \$Format:* ]]; then # When running from a source tree without 'make install', $ZSH_HIGHLIGHT_REVISION # would be set to '$Format:%H$' literally. That's an invalid value, and obtaining