daily pastebin goal
3%
SHARE
TWEET

Untitled

a guest Nov 20th, 2017 39 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2.  
  3. ROOT=$HOME/notes
  4. notes(){
  5.   (cd $ROOT
  6.   git pull
  7.   echo $1 >> notes
  8.   git add notes
  9.   git commit -m "new note"
  10.   git push
  11.   )
  12. }
  13.  
  14. readlater(){
  15.   (
  16.   cd $ROOT
  17.   git pull;
  18.   echo $1 >> readlater
  19.   git add readlater
  20.   git commit -m "new note"
  21.   git push
  22.   )
  23. }
  24.  
  25. showReadlater(){
  26.   (
  27.   cd $ROOT
  28.   git pull;
  29.   vim readlater
  30.   git add readlater
  31.   git commit -m "showed readlater"
  32.   git push
  33.   )
  34. }
  35.  
  36. showNotes(){
  37.   (
  38.   cd $ROOT
  39.   git pull;
  40.   vim notes
  41.   git add notes
  42.   git commit -m "showed note"
  43.   git push
  44.   )
  45. }
RAW Paste Data
Top