NOTESDIR="$HOME/.notes"

OLD_DIR=`pwd`
cd $NOTESDIR
git add .
modified=$(git diff --name-status HEAD)
count=$(wc -l <<< "$modified")
git commit -m "$count file(s) changed

$modified"

read -p "Push? [y/n] " -n 1 -r
echo
if [[ $REPLY =~ ^[yY]$ ]]; then
    git push origin
else
    echo "Not pushing changes"
fi

cd $OLD_DIR

Add a saving script for the notes
Add a saving script for the notes
