aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorHsieh Chin Fan <pham@topo.tw>2023-03-21 13:52:22 +0800
committerHsieh Chin Fan <pham@topo.tw>2023-03-21 13:52:22 +0800
commit9b19f4fee9cffbf6816417f0dbbfe984d043cb01 (patch)
treee1f16f3c739d15aa5afcc5022ad78d4850078ad9
parent29f7398f23719262ef8fd5abfcb7236189842824 (diff)
Improve zsh completion
-rw-r--r--alias1
-rw-r--r--bin/task/shellrc2
2 files changed, 2 insertions, 1 deletions
diff --git a/alias b/alias
index f72d343..34c5e76 100644
--- a/alias
+++ b/alias
@@ -37,6 +37,7 @@ alias vu='vim -u NONE'
37alias vq='vim ~/buffer' 37alias vq='vim ~/buffer'
38alias cdv='cd ~/.vim/vim-init' 38alias cdv='cd ~/.vim/vim-init'
39vs() { which $1 && vim $(which $1); } 39vs() { which $1 && vim $(which $1); }
40[ "$shell" = zsh ] && compdef vs=which
40 41
41# ssh 42# ssh
42alias cdssh='cd ~/.ssh' 43alias 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` $@; }
3tkc(){ echo $1 >~/.task/context; } 3tkc(){ echo $1 >~/.task/context; }
4tkcn() { echo none >~/.task/context; } 4tkcn() { echo none >~/.task/context; }
5tkch() { echo home >~/.task/context; } 5tkch() { echo home >~/.task/context; }
6[ $shell = zsh ] && compdef tk=task 6[ "$shell" = zsh ] && compdef tk=task
7alias tka='tk annotate' 7alias tka='tk annotate'
8alias tkd='tk done' 8alias tkd='tk done'
9alias tkD='tk delete' 9alias tkD='tk delete'