Skip to content

Instantly share code, notes, and snippets.

@Timmeey
Last active November 19, 2017 12:28
Show Gist options
  • Save Timmeey/d55fd8e104648a6ac0e3e68ca60f22eb to your computer and use it in GitHub Desktop.
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
#!/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