Commit cab785aec2b1ac00cfdfa79ec1abbd8dcf8f8cfb

Authored by Ian Foster
1 parent edce9781e6
Exists in master

bash notes shortcuts

Showing 1 changed file with 9 additions and 0 deletions Side-by-side Diff

shell/bashrc View file @ cab785a
... ... @@ -191,6 +191,15 @@
191 191 export CHROMIUM_USER_FLAGS="--disk-cache-dir=/tmp"
192 192  
193 193  
  194 +# -------------------
  195 +# Terminal Notes
  196 +# -------------------
  197 +NOTES_FOLDER=$HOME/Dropbox/notes
  198 +n() { $EDITOR $NOTES_FOLDER/"$*".txt ; }
  199 +nls() { tree -CR --noreport $NOTES_FOLDER | awk '{ if ((NR > 1) gsub(/.txt/,"")); if (NF==1) print $1; else if (NF==2) print $2; else if (NF==3) printf " %s\n", $3 }' ;}
  200 +nrm() { rm $NOTES_FOLDER/"$*".txt ; }
  201 +
  202 +
194 203  
195 204 # -------------------
196 205 # Other