Last active
November 19, 2017 12:28
-
-
Save Timmeey/d55fd8e104648a6ac0e3e68ca60f22eb to your computer and use it in GitHub Desktop.
VERY simple and basic note taking script i use for myself. It can save "readLater" kind of notes or actual notes, always pullin/pushing it to a git repository
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
ROOT=$HOME/notes | |
notes(){ | |
(cd $ROOT | |
git pull | |
echo $1 >> notes | |
git add notes | |
git commit -m "new note" | |
git push | |
) | |
} | |
readlater(){ | |
( | |
cd $ROOT | |
git pull; | |
echo $1 >> readlater | |
git add readlater | |
git commit -m "new note" | |
git push | |
) | |
} | |
showReadlater(){ | |
( | |
cd $ROOT | |
git pull; | |
vim readlater | |
git add readlater | |
git commit -m "showed readlater" | |
git push | |
) | |
} | |
showNotes(){ | |
( | |
cd $ROOT | |
git pull; | |
vim notes | |
git add notes | |
git commit -m "showed note" | |
git push | |
) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment