diff options
author | Hsieh Chin Fan <pham@topo.tw> | 2023-03-21 13:52:22 +0800 |
---|---|---|
committer | Hsieh Chin Fan <pham@topo.tw> | 2023-03-21 13:52:22 +0800 |
commit | 9b19f4fee9cffbf6816417f0dbbfe984d043cb01 (patch) | |
tree | e1f16f3c739d15aa5afcc5022ad78d4850078ad9 | |
parent | 29f7398f23719262ef8fd5abfcb7236189842824 (diff) |
Improve zsh completion
-rw-r--r-- | alias | 1 | ||||
-rw-r--r-- | bin/task/shellrc | 2 |
2 files changed, 2 insertions, 1 deletions
@@ -37,6 +37,7 @@ alias vu='vim -u NONE' | |||
37 | alias vq='vim ~/buffer' | 37 | alias vq='vim ~/buffer' |
38 | alias cdv='cd ~/.vim/vim-init' | 38 | alias cdv='cd ~/.vim/vim-init' |
39 | vs() { which $1 && vim $(which $1); } | 39 | vs() { which $1 && vim $(which $1); } |
40 | [ "$shell" = zsh ] && compdef vs=which | ||
40 | 41 | ||
41 | # ssh | 42 | # ssh |
42 | alias cdssh='cd ~/.ssh' | 43 | alias cdssh='cd ~/.ssh' |
diff --git a/bin/task/shellrc b/bin/task/shellrc index 6f2e5d3..a7025d0 100644 --- a/bin/task/shellrc +++ b/bin/task/shellrc | |||
@@ -3,7 +3,7 @@ tk() { task rc.context=`cat ~/.task/context` $@; } | |||
3 | tkc(){ echo $1 >~/.task/context; } | 3 | tkc(){ echo $1 >~/.task/context; } |
4 | tkcn() { echo none >~/.task/context; } | 4 | tkcn() { echo none >~/.task/context; } |
5 | tkch() { echo home >~/.task/context; } | 5 | tkch() { echo home >~/.task/context; } |
6 | [ $shell = zsh ] && compdef tk=task | 6 | [ "$shell" = zsh ] && compdef tk=task |
7 | alias tka='tk annotate' | 7 | alias tka='tk annotate' |
8 | alias tkd='tk done' | 8 | alias tkd='tk done' |
9 | alias tkD='tk delete' | 9 | alias tkD='tk delete' |