2023-05-25 05:39:40 +03:00
|
|
|
distributable:
|
|
|
|
url: https://github.com/zsh-users/zsh-syntax-highlighting/archive/refs/tags/{{version}}.tar.gz
|
|
|
|
strip-components: 1
|
|
|
|
|
|
|
|
versions:
|
|
|
|
github: zsh-users/zsh-syntax-highlighting/tags
|
|
|
|
|
|
|
|
build:
|
2023-10-02 03:41:57 +03:00
|
|
|
script:
|
2023-05-25 05:39:40 +03:00
|
|
|
- make --jobs {{ hw.concurrency }} install
|
|
|
|
# Users need to source this in their zsh configs
|
|
|
|
# - export ZSH_HIGHLIGHTING={{prefix}}/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
|
|
|
|
# TODO: #2008
|
|
|
|
# - gum format "# *Finish the install by running*" '## `echo "source '$ZSH_HIGHLIGHTING'" >> $HOME/.zshrc`' | gum format
|
|
|
|
|
|
|
|
# Use tests provided by the highlighter for test
|
|
|
|
- |
|
|
|
|
mkdir {{prefix}}/share/zsh-syntax-highlighting/tests {{prefix}}/share/zsh-syntax-highlighting/highlighters/main/test-data
|
|
|
|
cp -r ./tests/* {{prefix}}/share/zsh-syntax-highlighting/tests
|
|
|
|
cp ./highlighters/main/test-data/alias-basic.zsh {{prefix}}/share/zsh-syntax-highlighting/highlighters/main/test-data
|
|
|
|
env:
|
|
|
|
ARGS:
|
|
|
|
- --prefix="{{prefix}}"
|
|
|
|
|
|
|
|
test: |
|
|
|
|
chmod +x ./fixture.sh
|
|
|
|
./fixture.sh {{prefix}}/share/zsh-syntax-highlighting
|