dotfiles/mutt/unlock-pass.sh

12 lines
182 B
Bash
Raw Normal View History

2013-08-18 11:53:13 +00:00
#!/bin/bash
PASS_FILE="/dev/shm/$USER-mutt-pass"
ENC_PASS_FILE=~/.mutt/passwords.gpg
2013-08-19 12:17:34 +00:00
if [ ! -s $PASS_FILE ]; then
2013-08-18 11:53:13 +00:00
umask 077
gpg -d $ENC_PASS_FILE > $PASS_FILE
fi
cat $PASS_FILE