Skip to content

Instantly share code, notes, and snippets.

@Timmeey Timmeey/notes.sh
Last active Nov 19, 2017

Embed
What would you like to do?
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
#!/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
You can’t perform that action at this time.