Mercurial > dotfiles
diff .chezmoiscripts/run_once_after_39-install-helix.sh.tmpl @ 875:75fe7fda0948
feat: upstep helix with patch for indentation
author | Zeger Van de Vannet <zeger@vandevan.net> |
---|---|
date | Sun, 21 Apr 2024 18:47:59 +0200 |
parents | 6326025918fa |
children | 8284bef42d1b |
line wrap: on
line diff
--- a/.chezmoiscripts/run_once_after_39-install-helix.sh.tmpl Tue Apr 16 19:07:27 2024 +0200 +++ b/.chezmoiscripts/run_once_after_39-install-helix.sh.tmpl Sun Apr 21 18:47:59 2024 +0200 @@ -1,9 +1,6 @@ {{ if (eq .chezmoi.os "linux") -}} #!/usr/bin/env bash -# Increment to trigger a new build -# Build version 24.03-3 - set -xe HELIX_BUILD_DIR=/tmp/helix @@ -14,15 +11,22 @@ git clone https://github.com/zegervdv/helix $HELIX_BUILD_DIR cd $HELIX_BUILD_DIR -git checkout zegervdv +git checkout 1db6d6fdc68566a1f075058c1e8fac8a533432d7 pushd vendor bash setup.sh popd cargo build --release --locked -cp -r runtime $HELIX_DEFAULT_RUNTIME +rm -rf $HELIX_DEFAULT_RUNTIME +mkdir -p $HELIX_DEFAULT_RUNTIME +cp -r runtime/* $HELIX_DEFAULT_RUNTIME/ cp target/release/hx $HELIX_INSTALL_DIR/hx -ln -s $HELIX_INSTALL_DIR/hx $HOME/bin/hx +dest=$HOME/bin/hx +if [ -L $dest ] && [ -e $dest ]; then + echo 'Already linked!' +else + ln -s $HELIX_INSTALL_DIR/hx +fi {{ end }}