versionstamp: Better $ZSH_HIGHLIGHT_REVISION reporting when running from git.
This commit is contained in:
parent
635a68f7b4
commit
84734ba950
@ -36,7 +36,7 @@ if [[ -o function_argzero ]]; then
|
|||||||
# When running from a source tree without 'make install', $ZSH_HIGHLIGHT_REVISION
|
# 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
|
# would be set to '$Format:%H$' literally. That's an invalid value, and obtaining
|
||||||
# the valid value (via `git rev-parse HEAD`, as Makefile does) might be costly, so:
|
# the valid value (via `git rev-parse HEAD`, as Makefile does) might be costly, so:
|
||||||
unset ZSH_HIGHLIGHT_REVISION
|
ZSH_HIGHLIGHT_REVISION=HEAD
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
# $0 is unreliable, so the call to _zsh_highlight_load_highlighters will fail.
|
# $0 is unreliable, so the call to _zsh_highlight_load_highlighters will fail.
|
||||||
|
Loading…
Reference in New Issue
Block a user