diff options
author | Hsieh Chin Fan <pham@topo.tw> | 2024-12-24 14:59:12 +0800 |
---|---|---|
committer | Hsieh Chin Fan <pham@topo.tw> | 2024-12-24 14:59:12 +0800 |
commit | e940ab3a8b2c0a9109ed0e36f4afad784eef846c (patch) | |
tree | 89d4f6531aad7549420d56cd97be0ec415b924e3 /bin | |
parent | 4eb4cd12a1279de9f1cd65f6a92a606c01593a1f (diff) |
Update
Diffstat (limited to 'bin')
-rw-r--r-- | bin/log/shellrc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/log/shellrc b/bin/log/shellrc index 504a129..71b28f5 100644 --- a/bin/log/shellrc +++ b/bin/log/shellrc | |||
@@ -3,8 +3,9 @@ alias cdl='cd ~/log' | |||
3 | alias chw='tig -C ~/log' | 3 | alias chw='tig -C ~/log' |
4 | ww() { | 4 | ww() { |
5 | entry="${1:-inbox}" | 5 | entry="${1:-inbox}" |
6 | entry="${entry%.md}" | 6 | export entry="${entry%.md}" |
7 | file=$(find ~/log -name "${entry}*" | head -1) | 7 | file=$(find ~/log -name "${entry}*" | head -1) |
8 | file=${file:-$HOME/log/$entry.md} | ||
8 | $EDITOR $file | 9 | $EDITOR $file |
9 | } | 10 | } |
10 | wj() { echo "$@" >>~/log/buffer.md; } | 11 | wj() { echo "$@" >>~/log/buffer.md; } |