aboutsummaryrefslogtreecommitdiffhomepage
path: root/bin/log
diff options
context:
space:
mode:
Diffstat (limited to 'bin/log')
-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; }