Add bootstrap files

This commit is contained in:
Isaac Shoebottom 2025-01-22 01:41:39 -04:00
parent 38a03aac0e
commit 1a49197040
2 changed files with 21 additions and 1 deletions

View File

@ -0,0 +1,18 @@
#!/bin/bash
# exit immediately if password-manager-binary is already in $PATH
type rbw >/dev/null 2>&1 && exit
# pacman based distros
if type pacman >/dev/null 2>&1; then
sudo pacman -S rbw
# apt based distros
elif type apt >/dev/null 2>&1; then
sudo apt install rbw
# dnf based distros
elif type dnf >/dev/null 2>&1; then
sudo dnf install rbw
rbw config set email "ir.shoebottom@gmail.com"
rbw config set base_url "https://bitwarden.shoebottom.ca"
rbw login

View File

@ -5,3 +5,5 @@ encryption = "age"
[edit] [edit]
command = "code" command = "code"
args = ["--wait"] args = ["--wait"]
[hooks.read-source-state.pre]
command = ".local/share/chezmoi/.install-password-manager.sh"