aboutsummaryrefslogtreecommitdiffhomepage
path: root/zsh
diff options
context:
space:
mode:
authorHsieh Chin Fan <pham@topo.tw>2023-04-13 11:43:27 +0800
committerHsieh Chin Fan <pham@topo.tw>2023-04-13 11:43:27 +0800
commit4ae36ba00e2116fd771916d265035f4eb1c6f6c5 (patch)
treeb6a6ceff7dca19e69f5e66bf467d1dfef5e268dd /zsh
parent51122991d869b0121c0580befa72c14675ae4d65 (diff)
Update
Diffstat (limited to 'zsh')
-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() {