diff options
| author | Hsieh Chin Fan <pham@topo.tw> | 2023-06-12 13:49:42 +0800 |
|---|---|---|
| committer | Hsieh Chin Fan <pham@topo.tw> | 2023-06-12 13:49:42 +0800 |
| commit | 69fa3ad6862b958af0a14e0795646e436e52fa81 (patch) | |
| tree | 27050fb15fab93187b010f1fb56f169df0e90ec3 | |
| parent | a63fda46e8905fa7c3082a19d2bfbe02a9827c93 (diff) | |
Update
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | alias | 13 | ||||
| -rw-r--r-- | bin/log/shellrc | 12 |
3 files changed, 12 insertions, 14 deletions
| @@ -1,3 +1,2 @@ | |||
| 1 | private/* | 1 | private/* |
| 2 | log | ||
| 3 | tokens/* | 2 | tokens/* |
| @@ -314,19 +314,6 @@ alias chh="tig -C $SETTING_DIR status" | |||
| 314 | alias cdB='cd $HOME/bean' | 314 | alias cdB='cd $HOME/bean' |
| 315 | alias b='vim $HOME/bean/main.bean' | 315 | alias b='vim $HOME/bean/main.bean' |
| 316 | 316 | ||
| 317 | # about vimwiki | ||
| 318 | alias cdl='cd ~/log' | ||
| 319 | alias chw='tig -C ~/log' | ||
| 320 | ww() { entry="${1:-plan.context}"; vim ~/log/${entry%%.md}.md; } | ||
| 321 | wj() { echo "$@" >>~/log/buffer.md; } | ||
| 322 | wg() { grep -r "$@" --color --exclude-dir={logseq,.git,.obsidian} ~/log; } | ||
| 323 | wi() { cat ~/log/${1%%.md}.md; } | ||
| 324 | wD() { rm ~/log/${1%%.md}.md; } | ||
| 325 | alias dia='diary' | ||
| 326 | alias dias='diary specify' | ||
| 327 | alias diaa='diary print' | ||
| 328 | alias diat='diary today' | ||
| 329 | |||
| 330 | # crontab | 317 | # crontab |
| 331 | alias ce='crontab -e' | 318 | alias ce='crontab -e' |
| 332 | alias cl='crontab -l' | 319 | alias cl='crontab -l' |
diff --git a/bin/log/shellrc b/bin/log/shellrc new file mode 100644 index 0000000..721ed1b --- /dev/null +++ b/bin/log/shellrc | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | # about vimwiki | ||
| 2 | alias cdl='cd ~/log' | ||
| 3 | alias chw='tig -C ~/log' | ||
| 4 | ww() { entry="${1:-plan.context}"; vim ~/log/${entry%%.md}.md; } | ||
| 5 | wj() { echo "$@" >>~/log/buffer.md; } | ||
| 6 | wg() { grep -r "$@" --color --exclude-dir={logseq,.git,.obsidian} ~/log; } | ||
| 7 | wi() { cat ~/log/${1%%.md}.md; } | ||
| 8 | wD() { rm ~/log/${1%%.md}.md; } | ||
| 9 | alias dia='diary' | ||
| 10 | alias dias='diary specify' | ||
| 11 | alias diaa='diary print' | ||
| 12 | alias diat='diary today' | ||