Changed some filenames Rewrote edit function to be more sane Separated encryption and decryption functions from edit into libencryption.sh Fixed a bug where an edit tag would be added regardless of create status
20 lines
308 B
Bash
20 lines
308 B
Bash
function init_default_config() {
|
|
if [ -z "$ROOTDIR" ]; then
|
|
ROOTDIR=$HOME/.sns
|
|
fi
|
|
if [ -z "$BASEDIR" ]; then
|
|
BASEDIR=$ROOTDIR/notes
|
|
fi
|
|
if [ -z "$EXT" ]; then
|
|
EXT=note
|
|
fi
|
|
if [ -z "$EDITOR" ]; then
|
|
EDITOR=vim
|
|
fi
|
|
if [ -z "$ENC_KEY" ]; then
|
|
ENCRYPTION="FALSE"
|
|
else
|
|
ENCRYPTION="TRUE"
|
|
fi
|
|
}
|