Files
dotfiles/.local/bin/setup/setuppass
2021-06-24 23:23:54 +01:00

15 lines
304 B
Bash
Executable File

#! /bin/bash
[ -z MASTERPW ] &&
export MASTERPW=$(dialog --no-cancel --passwordbox "Enter Enpass master password." 10 60 3>&1 1>&2 2>&3 3>&1 | sed 's/\s//g')
echo "$MASTERPW" | xclip -selection clipboard -i
chmod 700 "$HOME/.config/gnupg"
gpg --full-generate-key
pass init stofflees@gmail.com