Add note-taking function
authorSiraaj Khandkar <siraaj@khandkar.net>
Fri, 7 Jun 2019 04:00:05 +0000 (00:00 -0400)
committerSiraaj Khandkar <siraaj@khandkar.net>
Fri, 7 Jun 2019 04:00:05 +0000 (00:00 -0400)
home/lib/login_functions.sh
home/lib/login_variables.sh

index 862e908..7c569dc 100644 (file)
@@ -151,6 +151,11 @@ work_log() {
 
 }
 
+note() {
+    mkdir -p "$DIR_NOTES"
+    vim "$DIR_NOTES/$(date +'%Y_%m_%d--%H_%M_%S%z')--$1.md"
+}
+
 weather() {
     curl "http://wttr.in/$WEATHER_LOCATION"
 }
index ea77c6c..defe2c8 100644 (file)
@@ -2,6 +2,7 @@ export PATH=$HOME/bin:/snap/bin:/sbin:/usr/sbin:$PATH
 export EDITOR=vim
 export VISUAL=$EDITOR
 export DIR_GITHUB="${HOME}/Archives/Software/src/repos/remote/github.com"
+export DIR_NOTES="$HOME/Documents/Notes"
 
 # .Net Core
 export DOTNET_ROOT=$HOME/.dotnet
This page took 0.02018 seconds and 4 git commands to generate.