# HG changeset patch # User Zeger Van de Vannet # Date 1713718079 -7200 # Node ID 75fe7fda094847acf6522331b62ad0648ed8361f # Parent 1e11c38b195c73a7524b0fa25988482e32b91e3a feat: upstep helix with patch for indentation diff -r 1e11c38b195c -r 75fe7fda0948 .chezmoiscripts/run_once_after_39-install-helix.sh.tmpl --- 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 }}