add syncnotes git automation

This commit is contained in:
Noah Masur
2020-08-02 10:28:55 -04:00
parent 2152c1739c
commit 20a4e5b6ac
2 changed files with 11 additions and 0 deletions

View File

@ -46,4 +46,14 @@ function notes --description "Notes functions"
vim ~/Documents/notes/$argv[1].md
end
abbr -a sn 'syncnotes'
function syncnotes --description "Full git commit on notes"
cd $HOME/Documents/notes
git pull
git add -A
git commit -m "autosync"
git push
cd -
end
end