zsh-users / zsh-syntax-highlighting

Fish shell like syntax highlighting for Zsh.
github.com/zsh-users/zsh-syntax-highlighting
BSD 3-Clause "New" or "Revised" License
19.55k stars 1.32k forks source link

Review ZSH_HIGHLIGHT_REVISION=HEAD case for bug reports #863

Open danielshahaf opened 2 years ago

danielshahaf commented 2 years ago

Over in #862 the OP reported ZSH_HIGHLIGHT_REVISION=HEAD. This value doesn't identify a particular commit hash. For fielding bug reports, it would be useful to have a command that emits a commit hash, or more generally, a gitrevisions(7) expression.

https://github.com/zsh-users/zsh-syntax-highlighting/blob/c5ce0014677a0f69a10b676b6038ad127f40c6b1/zsh-syntax-highlighting.zsh#L38-L50