aboutsummaryrefslogtreecommitdiffhomepage
path: root/zsh/zshrc
diff options
context:
space:
mode:
Diffstat (limited to 'zsh/zshrc')
-rw-r--r--zsh/zshrc5
1 files changed, 3 insertions, 2 deletions
diff --git a/zsh/zshrc b/zsh/zshrc
index a43dc2e..6a5a587 100644
--- a/zsh/zshrc
+++ b/zsh/zshrc
@@ -36,8 +36,8 @@ _comp_options+=(globdots) # With hidden files
36zstyle ':completion:*' menu select 36zstyle ':completion:*' menu select
37zstyle ':completion::complete:*' gain-privileges 1 37zstyle ':completion::complete:*' gain-privileges 1
38 38
39 39# Set variable CONTEXT
40_get_context() { 40function _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
49autoload -Uz add-zsh-hook 50autoload -Uz add-zsh-hook
50add-zsh-hook precmd precmd 51add-zsh-hook precmd precmd
51function precmd() { 52function precmd() {