From e940ab3a8b2c0a9109ed0e36f4afad784eef846c Mon Sep 17 00:00:00 2001 From: Hsieh Chin Fan Date: Tue, 24 Dec 2024 14:59:12 +0800 Subject: Update --- bin/log/shellrc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'bin') 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' alias chw='tig -C ~/log' ww() { entry="${1:-inbox}" - entry="${entry%.md}" + export entry="${entry%.md}" file=$(find ~/log -name "${entry}*" | head -1) + file=${file:-$HOME/log/$entry.md} $EDITOR $file } wj() { echo "$@" >>~/log/buffer.md; } -- cgit v1.2.3-70-g09d2