hide crypted text

This commit is contained in:
Ville Rantanen
2017-02-10 12:25:36 +02:00
parent 690d565fae
commit 7b33fd218b
2 changed files with 22 additions and 2 deletions

View File

@@ -37,10 +37,10 @@ then echo "File $1 does not exist. Creating empty file"
else
gpg --decrypt "$1" > "$unc"
fi
LIB=$( dirname $( readlink -f $0 ) )/crypted.vim
edit=`date +%s -r $unc`
if [ -s "$unc" ]
then vim -i NONE -n "$unc"
then vim -i NONE -S "$LIB" -n "$unc"
else echo Error in decrypting
$RM "$unc"
exit 1