aboutsummaryrefslogtreecommitdiffhomepage
path: root/bin
diff options
context:
space:
mode:
authorHsieh Chin Fan <pham@topo.tw>2024-12-24 14:59:12 +0800
committerHsieh Chin Fan <pham@topo.tw>2024-12-24 14:59:12 +0800
commite940ab3a8b2c0a9109ed0e36f4afad784eef846c (patch)
tree89d4f6531aad7549420d56cd97be0ec415b924e3 /bin
parent4eb4cd12a1279de9f1cd65f6a92a606c01593a1f (diff)
Update
Diffstat (limited to 'bin')
-rw-r--r--bin/log/shellrc3
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'
3alias chw='tig -C ~/log' 3alias chw='tig -C ~/log'
4ww() { 4ww() {
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}
10wj() { echo "$@" >>~/log/buffer.md; } 11wj() { echo "$@" >>~/log/buffer.md; }