feat: use initial config file
This commit is contained in:
parent
8cee2da155
commit
d6393efb45
3 changed files with 7 additions and 1 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -1,3 +1,5 @@
|
||||||
*~
|
*~
|
||||||
*swo
|
*swo
|
||||||
*swp
|
*swp
|
||||||
|
|
||||||
|
.config
|
||||||
|
|
1
example.config
Normal file
1
example.config
Normal file
|
@ -0,0 +1 @@
|
||||||
|
journal_base="${HOME}/notes/Journal"
|
|
@ -1,6 +1,9 @@
|
||||||
#! /usr/bin/bash
|
#! /usr/bin/bash
|
||||||
|
|
||||||
journal_dir="${HOME}/notes/Journal"
|
# Load config
|
||||||
|
. ./.config
|
||||||
|
|
||||||
|
journal_dir=$journal_base
|
||||||
month_dir=$(date +"%m %b")
|
month_dir=$(date +"%m %b")
|
||||||
file_name=$(date +'%m.%d.%Y').md
|
file_name=$(date +'%m.%d.%Y').md
|
||||||
full_path="${journal_dir}/${month_dir}/${file_name}"
|
full_path="${journal_dir}/${month_dir}/${file_name}"
|
||||||
|
|
Loading…
Reference in a new issue