comparison .chezmoiscripts/run_onchange_after_19-install-bitwarden.sh.tmpl @ 1093:9732db099471 draft

feat: enable dotfiles on aarch64/Fedora
author "Zeger Van de Vannet <zeger@vandevan.net>"
date Sun, 18 May 2025 16:28:58 +0200
parents a1fab5298ef6
children
comparison
equal deleted inserted replaced
1092:6fb43864241b 1093:9732db099471
1 {{ if (and (eq .chezmoi.os "linux") (eq .chezmoi.osRelease.name "Ubuntu" )) -}} 1 {{ if (eq .chezmoi.os "linux") -}}
2 #!/usr/bin/env bash 2 #!/usr/bin/env bash
3 3
4 set -xe 4 set -xe
5 5
6 sudo apt install -y libnss3 libsecret-1-0 libxss1
7
8 DOWNLOADFILE=/tmp/bitwarden.deb
9 VERSION="2025.3.0" 6 VERSION="2025.3.0"
10 curl -fsSL "https://github.com/bitwarden/clients/releases/download/cli-v${VERSION}/bw-linux-${VERSION}.zip" | zcat | install -m 755 /dev/stdin $HOME/bin/bw 7 curl -fsSL "https://github.com/bitwarden/clients/releases/download/cli-v${VERSION}/bw-linux-${VERSION}.zip" | zcat | install -m 755 /dev/stdin $HOME/bin/bw
8
9 {{ if (eq .chezmoi.osRelease.name "Ubuntu" ) -}}
10 sudo apt install -y libnss3 libsecret-1-0 libxss1
11 DOWNLOADFILE=/tmp/bitwarden.deb
11 curl -fsSL "https://github.com/bitwarden/clients/releases/download/desktop-v${VERSION}/Bitwarden-${VERSION}-amd64.deb" > $DOWNLOADFILE 12 curl -fsSL "https://github.com/bitwarden/clients/releases/download/desktop-v${VERSION}/Bitwarden-${VERSION}-amd64.deb" > $DOWNLOADFILE
12 sudo dpkg --install --skip-same-version $DOWNLOADFILE 13 sudo dpkg --install --skip-same-version $DOWNLOADFILE
13 rm -rf $DOWNLOADFILE 14 rm -rf $DOWNLOADFILE
15 {{ end }}
14 16
15 $HOME/bin/mise x [email protected] -- cargo install --version 1.13.2 rbw 17 $HOME/bin/mise x [email protected] -- cargo install --version 1.13.2 rbw
16 18
17 {{ end }} 19 {{ end }}