.zshrc
This commit is contained in:
parent
83c71c18d7
commit
27065816c7
1 changed files with 7 additions and 4 deletions
11
.zshrc
11
.zshrc
|
@ -1,4 +1,6 @@
|
|||
# -*- Mode: shell-script; -*-
|
||||
autoload -Uz add-zsh-hook
|
||||
|
||||
# Setup variables
|
||||
HISTFILE=$ZDOTDIR/histfile
|
||||
HISTSIZE=1000
|
||||
|
@ -48,10 +50,11 @@ typeset -ga precmd_functions
|
|||
typeset -ga chpwd_functions
|
||||
|
||||
# Append git functions needed for prompt.
|
||||
preexec_functions+='preexec_update_vars'
|
||||
precmd_functions+='precmd_update_git_vars'
|
||||
precmd_functions+='precmd_update_updates'
|
||||
chpwd_functions+='chpwd_update_git_vars'
|
||||
add-zsh-hook preexec preexec_update_vars
|
||||
add-zsh-hook precmd precmd_update_git_vars
|
||||
add-zsh-hook precmd precmd_update_updates
|
||||
add-zsh-hook precmd precmd_maybe_festival
|
||||
add-zsh-hook chpwd chpwd_update_git_vars
|
||||
|
||||
# Set the prompt.
|
||||
PROMPT='$(prompt)'
|
||||
|
|
Loading…
Reference in a new issue