dotfiles/mutt/unlock-pass.sh
2013-08-19 14:17:34 +02:00

12 lines
182 B
Bash
Executable file

#!/bin/bash
PASS_FILE="/dev/shm/$USER-mutt-pass"
ENC_PASS_FILE=~/.mutt/passwords.gpg
if [ ! -s $PASS_FILE ]; then
umask 077
gpg -d $ENC_PASS_FILE > $PASS_FILE
fi
cat $PASS_FILE