diff options
-rw-r--r-- | bin/task/shellrc | 1 | ||||
-rw-r--r-- | zsh/zshrc | 5 |
2 files changed, 3 insertions, 3 deletions
diff --git a/bin/task/shellrc b/bin/task/shellrc index 0416dfa..7098ac0 100644 --- a/bin/task/shellrc +++ b/bin/task/shellrc | |||
@@ -4,7 +4,6 @@ tk() { task rc.context=`cat ~/.task/context` $@; } | |||
4 | tkc(){ echo $1 >~/.task/context; } | 4 | tkc(){ echo $1 >~/.task/context; } |
5 | alias tkcc='task context' | 5 | alias tkcc='task context' |
6 | tkcn() { echo none >~/.task/context; } | 6 | tkcn() { echo none >~/.task/context; } |
7 | tkch() { echo home >~/.task/context; } | ||
8 | tkcp() { echo plan >~/.task/context; } | 7 | tkcp() { echo plan >~/.task/context; } |
9 | [ "$shell" = zsh ] && compdef tk=task | 8 | [ "$shell" = zsh ] && compdef tk=task |
10 | alias tka='tk annotate' | 9 | alias tka='tk annotate' |
@@ -36,8 +36,8 @@ _comp_options+=(globdots) # With hidden files | |||
36 | zstyle ':completion:*' menu select | 36 | zstyle ':completion:*' menu select |
37 | zstyle ':completion::complete:*' gain-privileges 1 | 37 | zstyle ':completion::complete:*' gain-privileges 1 |
38 | 38 | ||
39 | 39 | # Set variable CONTEXT | |
40 | _get_context() { | 40 | function _get_context() { |
41 | CONTEXT_FILE=${CONTEXT_FILE:-~/.task/context} | 41 | CONTEXT_FILE=${CONTEXT_FILE:-~/.task/context} |
42 | 42 | ||
43 | LAST_MODIFY_TIME=$(stat -c %y "$CONTEXT_FILE") | 43 | LAST_MODIFY_TIME=$(stat -c %y "$CONTEXT_FILE") |
@@ -46,6 +46,7 @@ _get_context() { | |||
46 | MODIFY_TIME="$LAST_MODIFY_TIME" | 46 | MODIFY_TIME="$LAST_MODIFY_TIME" |
47 | fi | 47 | fi |
48 | } | 48 | } |
49 | |||
49 | autoload -Uz add-zsh-hook | 50 | autoload -Uz add-zsh-hook |
50 | add-zsh-hook precmd precmd | 51 | add-zsh-hook precmd precmd |
51 | function precmd() { | 52 | function precmd() { |