diff options
| author | Hsieh Chin Fan <pham@topo.tw> | 2023-04-01 08:14:45 +0800 |
|---|---|---|
| committer | Hsieh Chin Fan <pham@topo.tw> | 2023-04-01 08:14:45 +0800 |
| commit | ec9fa1649008eee0d6a70dece07551d69057a35f (patch) | |
| tree | 2d067498335aea36d8fbc9568cebf01034bf7c0d /bin/wiki | |
| parent | 64d318c193205b81f84ecf9fc6306159d11ecf2e (diff) | |
Update
Diffstat (limited to 'bin/wiki')
| -rwxr-xr-x | bin/wiki/diary | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/wiki/diary b/bin/wiki/diary index 41b3e08..d9cbe83 100755 --- a/bin/wiki/diary +++ b/bin/wiki/diary | |||
| @@ -18,7 +18,7 @@ specify_date() { | |||
| 18 | done | 18 | done |
| 19 | 19 | ||
| 20 | FILE=~/log/diary/`date -d $YEAR-$MONTH-$DAY +%y.w%W.md` | 20 | FILE=~/log/diary/`date -d $YEAR-$MONTH-$DAY +%y.w%W.md` |
| 21 | vim -c 'Goyo' $FILE | 21 | $EDITOR -c 'Goyo' $FILE |
| 22 | } | 22 | } |
| 23 | 23 | ||
| 24 | print_today() { | 24 | print_today() { |
| @@ -27,7 +27,7 @@ print_today() { | |||
| 27 | } | 27 | } |
| 28 | 28 | ||
| 29 | edit_today() { | 29 | edit_today() { |
| 30 | vim -c Goyo $today | 30 | $EDITOR -c Goyo $today |
| 31 | } | 31 | } |
| 32 | 32 | ||
| 33 | add_entry() { | 33 | add_entry() { |