diff options
Diffstat (limited to 'src/config')
-rw-r--r-- | src/config/files/shell/bashrc.d/30-functions.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/config/files/shell/bashrc.d/30-functions.sh b/src/config/files/shell/bashrc.d/30-functions.sh index e02e8de..0ddaaff 100644 --- a/src/config/files/shell/bashrc.d/30-functions.sh +++ b/src/config/files/shell/bashrc.d/30-functions.sh @@ -4,6 +4,15 @@ get_date() { date +'%Y-%m-%d' } +note() { + if [ -f "$HOME/Notes/general/$(get_date).md" ]; then + vi "$HOME/Notes/general/$(get_date).md" + else + cp "$HOME/Notes/templates/daily.md" "$HOME/Notes/general/$(get_date).md" + vi "$HOME/Notes/general/$(get_date).md" + fi +} + notebook() { NEW=0 NOTEBOOK=$1 |