annotate .chezmoiscripts/run_once_after_39-install-helix.sh.tmpl @ 866:1e11c38b195c

feat: mark jump-labels as bold text
author Zeger Van de Vannet <zeger@vandevan.net>
date Tue, 16 Apr 2024 19:07:27 +0200
parents 6326025918fa
children 7af4c092f6c2 3e2b701ca7f1
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
865
6326025918fa feat: install custom helix build with mercurial support
Zeger Van de Vannet <zeger@vandevan.net>
parents:
diff changeset
1 {{ if (eq .chezmoi.os "linux") -}}
6326025918fa feat: install custom helix build with mercurial support
Zeger Van de Vannet <zeger@vandevan.net>
parents:
diff changeset
2 #!/usr/bin/env bash
6326025918fa feat: install custom helix build with mercurial support
Zeger Van de Vannet <zeger@vandevan.net>
parents:
diff changeset
3
6326025918fa feat: install custom helix build with mercurial support
Zeger Van de Vannet <zeger@vandevan.net>
parents:
diff changeset
4 # Increment to trigger a new build
6326025918fa feat: install custom helix build with mercurial support
Zeger Van de Vannet <zeger@vandevan.net>
parents:
diff changeset
5 # Build version 24.03-3
6326025918fa feat: install custom helix build with mercurial support
Zeger Van de Vannet <zeger@vandevan.net>
parents:
diff changeset
6
6326025918fa feat: install custom helix build with mercurial support
Zeger Van de Vannet <zeger@vandevan.net>
parents:
diff changeset
7 set -xe
6326025918fa feat: install custom helix build with mercurial support
Zeger Van de Vannet <zeger@vandevan.net>
parents:
diff changeset
8
6326025918fa feat: install custom helix build with mercurial support
Zeger Van de Vannet <zeger@vandevan.net>
parents:
diff changeset
9 HELIX_BUILD_DIR=/tmp/helix
6326025918fa feat: install custom helix build with mercurial support
Zeger Van de Vannet <zeger@vandevan.net>
parents:
diff changeset
10 HELIX_INSTALL_DIR=$HOME/helix
6326025918fa feat: install custom helix build with mercurial support
Zeger Van de Vannet <zeger@vandevan.net>
parents:
diff changeset
11 HELIX_DEFAULT_RUNTIME=$HELIX_INSTALL_DIR/runtime
6326025918fa feat: install custom helix build with mercurial support
Zeger Van de Vannet <zeger@vandevan.net>
parents:
diff changeset
12
6326025918fa feat: install custom helix build with mercurial support
Zeger Van de Vannet <zeger@vandevan.net>
parents:
diff changeset
13 rm -rf $HELIX_BUILD_DIR
6326025918fa feat: install custom helix build with mercurial support
Zeger Van de Vannet <zeger@vandevan.net>
parents:
diff changeset
14 git clone https://github.com/zegervdv/helix $HELIX_BUILD_DIR
6326025918fa feat: install custom helix build with mercurial support
Zeger Van de Vannet <zeger@vandevan.net>
parents:
diff changeset
15 cd $HELIX_BUILD_DIR
6326025918fa feat: install custom helix build with mercurial support
Zeger Van de Vannet <zeger@vandevan.net>
parents:
diff changeset
16
6326025918fa feat: install custom helix build with mercurial support
Zeger Van de Vannet <zeger@vandevan.net>
parents:
diff changeset
17 git checkout zegervdv
6326025918fa feat: install custom helix build with mercurial support
Zeger Van de Vannet <zeger@vandevan.net>
parents:
diff changeset
18 pushd vendor
6326025918fa feat: install custom helix build with mercurial support
Zeger Van de Vannet <zeger@vandevan.net>
parents:
diff changeset
19 bash setup.sh
6326025918fa feat: install custom helix build with mercurial support
Zeger Van de Vannet <zeger@vandevan.net>
parents:
diff changeset
20 popd
6326025918fa feat: install custom helix build with mercurial support
Zeger Van de Vannet <zeger@vandevan.net>
parents:
diff changeset
21
6326025918fa feat: install custom helix build with mercurial support
Zeger Van de Vannet <zeger@vandevan.net>
parents:
diff changeset
22 cargo build --release --locked
6326025918fa feat: install custom helix build with mercurial support
Zeger Van de Vannet <zeger@vandevan.net>
parents:
diff changeset
23 cp -r runtime $HELIX_DEFAULT_RUNTIME
6326025918fa feat: install custom helix build with mercurial support
Zeger Van de Vannet <zeger@vandevan.net>
parents:
diff changeset
24 cp target/release/hx $HELIX_INSTALL_DIR/hx
6326025918fa feat: install custom helix build with mercurial support
Zeger Van de Vannet <zeger@vandevan.net>
parents:
diff changeset
25
6326025918fa feat: install custom helix build with mercurial support
Zeger Van de Vannet <zeger@vandevan.net>
parents:
diff changeset
26 ln -s $HELIX_INSTALL_DIR/hx $HOME/bin/hx
6326025918fa feat: install custom helix build with mercurial support
Zeger Van de Vannet <zeger@vandevan.net>
parents:
diff changeset
27
6326025918fa feat: install custom helix build with mercurial support
Zeger Van de Vannet <zeger@vandevan.net>
parents:
diff changeset
28 {{ end }}