#!/bin/sh # mnsec: Make a secure encrypted entry using GPG. [ -z "$DEFAULT_GPG" ] && echo "DEFAULT_GPG not set" && return mkdir -p "/tmp/mksec" nvim "/tmp/mksec/$1" gpg --encrypt --armor --symmetric -r "$DEFAULT_GPG" --output "$HOME/docs/wr/sec/$1" "/tmp/mksec/$1" shred -u "/tmp/mksec/$1"