annotate .chezmoiscripts/run_onchange_after_19-install-bitwarden.sh.tmpl @ 876:8589883596fd

fix: remove pathdirs option to avoid slow path completions see: https://stackoverflow.com/questions/76746392/why-is-my-zsh-tab-completion-slow-on-commands-but-not-directories > Perform a path search even on command names with slashes in them. > Thus if ?/usr/local/bin? is in the user?s path, and he or she types ?X11/xinit?, the command ?/usr/local/bin/X11/xinit? will be executed (assuming it exists). > Commands explicitly beginning with ?/?, ?./? or ?../? are not subject to the path search. This also applies to the ?.? and source builtins.
author Zeger Van de Vannet <zeger@vandevan.net>
date Thu, 25 Apr 2024 10:05:40 +0200
parents 8430f87e87c8
children 59bf256e6c1c
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
841
8afe3c7a5a35 feat: install bitwarden cli
zegervdv <zegervdv@me.com>
parents:
diff changeset
1 {{ if (and (eq .chezmoi.os "linux") (eq .chezmoi.osRelease.name "Ubuntu" )) -}}
8afe3c7a5a35 feat: install bitwarden cli
zegervdv <zegervdv@me.com>
parents:
diff changeset
2 #!/usr/bin/env bash
8afe3c7a5a35 feat: install bitwarden cli
zegervdv <zegervdv@me.com>
parents:
diff changeset
3
8afe3c7a5a35 feat: install bitwarden cli
zegervdv <zegervdv@me.com>
parents:
diff changeset
4 set -xe
8afe3c7a5a35 feat: install bitwarden cli
zegervdv <zegervdv@me.com>
parents:
diff changeset
5
842
e9fc2263c225 feat: install bitwarden desktop app
zegervdv <zegervdv@me.com>
parents: 841
diff changeset
6 DOWNLOADFILE=/tmp/bitwarden.deb
841
8afe3c7a5a35 feat: install bitwarden cli
zegervdv <zegervdv@me.com>
parents:
diff changeset
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
8afe3c7a5a35 feat: install bitwarden cli
zegervdv <zegervdv@me.com>
parents:
diff changeset
11
843
8430f87e87c8 feat: install rbw
zegervdv <zegervdv@me.com>
parents: 842
diff changeset
12 rtx x [email protected] -- cargo install rbw
841
8afe3c7a5a35 feat: install bitwarden cli
zegervdv <zegervdv@me.com>
parents:
diff changeset
13
8afe3c7a5a35 feat: install bitwarden cli
zegervdv <zegervdv@me.com>
parents:
diff changeset
14 {{ end }}