Skip to content

Commit

Permalink
install pwd mgr on init
Browse files Browse the repository at this point in the history
  • Loading branch information
Johannes Metzner committed Mar 21, 2024
1 parent 0f00736 commit ae5d1a2
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 7 deletions.
2 changes: 2 additions & 0 deletions .chezmoi.toml.tmpl
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{{- $email := promptString "Used Email" -}}
[data]
email = {{ $email | quote }}
[hooks.read-source-state.pre]
command = ".local/share/chezmoi/.install-password-manager.sh"
[keeper]
args = ["--config", "{{ .chezmoi.homeDir }}/config.json"]
7 changes: 0 additions & 7 deletions .chezmoiscripts/run_once_before_01-install-keeper.sh.tmpl

This file was deleted.

20 changes: 20 additions & 0 deletions .install-password-manager.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/bin/bash
set -eufo pipefail
# exit immediately if password-manager-binary is already in $PATH
type ~/.local/bin/keeper >/dev/null 2>&1 && exit

case "$(uname -s)" in
Darwin)
# commands to install password-manager-binary on Darwin
;;
Linux)
# commands to install password-manager-binary on Linux
pip3 install keepercommander
;;
*)
echo "unsupported OS"
exit 1
;;
esac


0 comments on commit ae5d1a2

Please sign in to comment.