Add bootstrap files
This commit is contained in:
parent
38a03aac0e
commit
1a49197040
18
.install-password-manager.sh
Normal file
18
.install-password-manager.sh
Normal 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
|
@ -5,3 +5,5 @@ encryption = "age"
|
||||
[edit]
|
||||
command = "code"
|
||||
args = ["--wait"]
|
||||
[hooks.read-source-state.pre]
|
||||
command = ".local/share/chezmoi/.install-password-manager.sh"
|
Loading…
x
Reference in New Issue
Block a user