26 lines
556 B
Bash
26 lines
556 B
Bash
function writeconf {
|
|
cat > $HOME/.sns/sns.conf << EOF
|
|
#==========================================================
|
|
# Simple Note System Config, v2.0a1
|
|
# Copyright 2014, Xenese Labs/Sicron-Perion XNF
|
|
#==========================================================
|
|
|
|
#Directory where notes will be stored
|
|
ROOTDIR=$HOME/.sns
|
|
BASEDIR=$ROOTDIR/notes
|
|
|
|
#File extension to use (for listing notes)
|
|
EXT=note
|
|
|
|
#Preferred Editor
|
|
EDITOR=vim
|
|
|
|
#Encryption
|
|
#WARNING: ANY PREVIOUSLY UNENCRYPTED NOTES WILL BE LOST
|
|
ENCRYPTION="FALSE"
|
|
ENC_KEY=""
|
|
EOF
|
|
|
|
chmod 600 $ROOTDIR/sns.conf
|
|
}
|