Added utilities separation and listed dependencies at the bottom of the primary bashrc

This commit is contained in:
Wryn Wagner
2019-07-18 17:57:06 -06:00
parent 0146f199de
commit baf3e5593d
2 changed files with 19 additions and 10 deletions

8
bash/utility Normal file
View File

@ -0,0 +1,8 @@
#!/bin/bash
# --- Note-taking facilitated ---------------------------------
NOTE_PATH='/Users/w0ryn/Documents/notes';
NOTE_EXTENSION='.txt';
alias mynotes='cd $NOTE_PATH';
function note() { vim $NOTE_PATH/$1$NOTE_EXTENSION; }
function notes() { NOTE="$NOTE_PATH/$1$NOTE_EXTENSION"; [ $1 ] && [ -f $NOTE ] && vim $NOTE || vim $NOTE_PATH; }