Mercurial > dotfiles
comparison .chezmoiscripts/run_once_after_39-install-helix.sh.tmpl @ 1036:31351132efca
feat: switch rtx to mise and fixes for clean installs
author | Zeger Van de Vannet <zeger@vandevan.net> |
---|---|
date | Sun, 16 Jun 2024 20:24:58 +0200 |
parents | 8284bef42d1b |
children | 576f9efb8a31 9f9d247727fe |
comparison
equal
deleted
inserted
replaced
1035:45d1a5571c52 | 1036:31351132efca |
---|---|
14 git checkout c98fc6aa3cf06a1873d4b999e1fc57ec9050d40f | 14 git checkout c98fc6aa3cf06a1873d4b999e1fc57ec9050d40f |
15 pushd vendor | 15 pushd vendor |
16 bash setup.sh | 16 bash setup.sh |
17 popd | 17 popd |
18 | 18 |
19 cargo build --release --locked | 19 {{ if (eq .chezmoi.osRelease.name "Ubuntu") }} $HOME/bin/mise x [email protected] -- {{ end }} cargo build --release --locked |
20 rm -rf $HELIX_DEFAULT_RUNTIME | 20 rm -rf $HELIX_DEFAULT_RUNTIME |
21 mkdir -p $HELIX_DEFAULT_RUNTIME | 21 mkdir -p $HELIX_DEFAULT_RUNTIME |
22 cp -r runtime/* $HELIX_DEFAULT_RUNTIME/ | 22 cp -r runtime/* $HELIX_DEFAULT_RUNTIME/ |
23 cp target/release/hx $HELIX_INSTALL_DIR/hx | 23 cp target/release/hx $HELIX_INSTALL_DIR/hx |
24 | 24 |
25 dest=$HOME/bin/hx | 25 dest=$HOME/bin/hx |
26 if [ -L $dest ] && [ -e $dest ]; then | 26 if [ -L $dest ] && [ -e $dest ]; then |
27 echo 'Already linked!' | 27 echo 'Already linked!' |
28 else | 28 else |
29 ln -s $HELIX_INSTALL_DIR/hx | 29 ln -s $HELIX_INSTALL_DIR/hx $dest |
30 fi | 30 fi |
31 | 31 |
32 {{ end }} | 32 {{ end }} |