diff options
author | Hsieh Chin Fan <pham@topo.tw> | 2023-03-21 13:33:01 +0800 |
---|---|---|
committer | Hsieh Chin Fan <pham@topo.tw> | 2023-03-21 13:33:18 +0800 |
commit | 29f7398f23719262ef8fd5abfcb7236189842824 (patch) | |
tree | dce6cfc0edf19e5dd7e9f381d4ac663913a4acbd | |
parent | 932248dbab3bc2951be7cb7c25bb6d4d20964e24 (diff) |
Move task-related aliases into bin/task/shellrc
-rw-r--r-- | alias | 18 | ||||
-rw-r--r-- | bin/task/shellrc | 17 |
2 files changed, 17 insertions, 18 deletions
@@ -473,24 +473,6 @@ alias cdtrash='cd ~/.local/share/Trash' | |||
473 | trash() { mv $@ ~/.local/share/Trash; } | 473 | trash() { mv $@ ~/.local/share/Trash; } |
474 | alias ge='graph-easy --boxart' | 474 | alias ge='graph-easy --boxart' |
475 | 475 | ||
476 | # task | ||
477 | tk() { task rc.context=`cat ~/.task/context` $@; } | ||
478 | tkc(){ echo $1 >~/.task/context; } | ||
479 | tkcn() { echo none >~/.task/context; } | ||
480 | tkch() { echo home >~/.task/context; } | ||
481 | [ $shell = zsh ] && compdef tk=task | ||
482 | alias tka='tk annotate' | ||
483 | alias tkd='tk done' | ||
484 | alias tkD='tk delete' | ||
485 | alias tkm='tk modify' | ||
486 | alias tkn='tk next' | ||
487 | alias tk10='tk limit:10 \( status:completed or status:deleted \) rc.report.all.sort:end- all | tee >(sed -n 4p | cut -d" " -f5 | tee >(xargs -i echo Copied {}) | xsel -ib ) ' | ||
488 | tkw(){ tk $1 mod wait:${2##wait:}; } | ||
489 | alias tkrc='vim ~/.taskrc' | ||
490 | alias cdtk='cd ~/.task' | ||
491 | alias chtk='tig -C ~/.task status' | ||
492 | alias tt='taskwarrior-tui' | ||
493 | |||
494 | # pass | 476 | # pass |
495 | alias chp='tig -C ~/.password-store' | 477 | alias chp='tig -C ~/.password-store' |
496 | alias cdpass='cd ~/.password-store' | 478 | alias cdpass='cd ~/.password-store' |
diff --git a/bin/task/shellrc b/bin/task/shellrc new file mode 100644 index 0000000..6f2e5d3 --- /dev/null +++ b/bin/task/shellrc | |||
@@ -0,0 +1,17 @@ | |||
1 | # task | ||
2 | tk() { task rc.context=`cat ~/.task/context` $@; } | ||
3 | tkc(){ echo $1 >~/.task/context; } | ||
4 | tkcn() { echo none >~/.task/context; } | ||
5 | tkch() { echo home >~/.task/context; } | ||
6 | [ $shell = zsh ] && compdef tk=task | ||
7 | alias tka='tk annotate' | ||
8 | alias tkd='tk done' | ||
9 | alias tkD='tk delete' | ||
10 | alias tkm='tk modify' | ||
11 | alias tkn='tk next' | ||
12 | alias tk10='tk limit:10 \( status:completed or status:deleted \) rc.report.all.sort:end- all | tee >(sed -n 4p | cut -d" " -f5 | tee >(xargs -i echo Copied {}) | xsel -ib ) ' | ||
13 | tkw(){ tk $1 mod wait:${2##wait:}; } | ||
14 | alias tkrc='vim ~/.taskrc' | ||
15 | alias cdtk='cd ~/.task' | ||
16 | alias chtk='tig -C ~/.task status' | ||
17 | alias tt='taskwarrior-tui' | ||