From: Siraaj Khandkar Date: Fri, 7 Jun 2019 04:00:05 +0000 (-0400) Subject: Add note-taking function X-Git-Url: https://git.xandkar.net/?a=commitdiff_plain;h=065977fd1ef3c535b8589742bd7b19dbf3a49662;p=khome.git Add note-taking function --- diff --git a/home/lib/login_functions.sh b/home/lib/login_functions.sh index 862e908..7c569dc 100644 --- a/home/lib/login_functions.sh +++ b/home/lib/login_functions.sh @@ -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" } diff --git a/home/lib/login_variables.sh b/home/lib/login_variables.sh index ea77c6c..defe2c8 100644 --- a/home/lib/login_variables.sh +++ b/home/lib/login_variables.sh @@ -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