comparison .chezmoiscripts/run_onchange_after_20-install-rtx-and-plugins.sh.tmpl @ 809:72744c944497

feat: install packages and rtx for management
author zegervdv <zegervdv@me.com>
date Tue, 05 Dec 2023 20:03:16 +0100
parents
children e6ec2d27e228
comparison
equal deleted inserted replaced
808:459e70c99f4c 809:72744c944497
1 {{ if (and (eq .chezmoi.os "linux") (eq .chezmoi.osRelease.name "Ubuntu" )) -}}
2 #!/usr/bin/env bash
3
4 set -xe
5
6 # tool-versions hash: {{ include "dot_tool-versions" | sha256sum }}
7
8 RTX_BIN=$HOME/bin/rxt
9 curl https://github.com/jdx/rtx/releases/download/v2023.12.8/rtx-v2023.12.8-linux-x64 > $RTX_BIN
10 chmod +x $RTX_BIN
11
12 $RTX_BIN install --verbose --yes
13 mkdir -p $XDG_CONFIG_HOME/direnv/lib
14 $RTX_BIN direnv activate > $XDG_CONFIG_HOME/direnv/lib/use_rtx.sh
15 $RTX_BIN completion zsh > ~/.zsh/completetions
16
17
18 {{ end }}