Mercurial > dotfiles
annotate .chezmoiscripts/run_onchange_after_19-install-bitwarden.sh.tmpl @ 843:8430f87e87c8
feat: install rbw
author | zegervdv <zegervdv@me.com> |
---|---|
date | Tue, 13 Feb 2024 20:45:26 +0100 |
parents | e9fc2263c225 |
children | 59bf256e6c1c |
rev | line source |
---|---|
841 | 1 {{ if (and (eq .chezmoi.os "linux") (eq .chezmoi.osRelease.name "Ubuntu" )) -}} |
2 #!/usr/bin/env bash | |
3 | |
4 set -xe | |
5 | |
842
e9fc2263c225
feat: install bitwarden desktop app
zegervdv <zegervdv@me.com>
parents:
841
diff
changeset
|
6 DOWNLOADFILE=/tmp/bitwarden.deb |
841 | 7 curl -fsSL "https://github.com/bitwarden/clients/releases/download/cli-v2024.2.0/bw-linux-2024.2.0.zip" | zcat | install -m 755 /dev/stdin $HOME/bin/bw |
842
e9fc2263c225
feat: install bitwarden desktop app
zegervdv <zegervdv@me.com>
parents:
841
diff
changeset
|
8 curl -fsSL "https://github.com/bitwarden/clients/releases/download/desktop-v2024.2.0/Bitwarden-2024.2.0-amd64.deb" > $DOWNLOADFILE |
e9fc2263c225
feat: install bitwarden desktop app
zegervdv <zegervdv@me.com>
parents:
841
diff
changeset
|
9 sudo dpkg --install --skip-same-version $DOWNLOADFILE |
e9fc2263c225
feat: install bitwarden desktop app
zegervdv <zegervdv@me.com>
parents:
841
diff
changeset
|
10 rm -rf $DOWNLOADFILE |
841 | 11 |
843 | 12 rtx x [email protected] -- cargo install rbw |
841 | 13 |
14 {{ end }} |