TRAPERR() is not something I can use, since it affects precmd() as well; also check for prompt_state_file before trying to remove it
This commit is contained in:
parent
dfb12955a6
commit
90a1d6b95a
1 changed files with 2 additions and 5 deletions
7
zshrc
7
zshrc
|
@ -2,7 +2,7 @@
|
|||
[[ $- != *i* ]] && return
|
||||
|
||||
# {{{ settings
|
||||
setopt APPEND_HISTORY EXTENDED_HISTORY HIST_IGNORE_DUPS EXTENDED_GLOB AUTO_CD AUTO_PUSHD
|
||||
setopt APPEND_HISTORY EXTENDED_HISTORY HIST_IGNORE_DUPS EXTENDED_GLOB AUTO_CD AUTO_PUSHD PRINT_EXIT_VALUE
|
||||
unsetopt BEEP NO_MATCH NOTIFY MENU_COMPLETE AUTO_MENU
|
||||
autoload -Uz colors && colors
|
||||
|
||||
|
@ -133,11 +133,8 @@ precmd() {
|
|||
precmd.prompt
|
||||
precmd.git_update &!
|
||||
}
|
||||
TRAPERR() {
|
||||
printf "$fg[red]>>$reset_color $fg[black]exit$reset_color $fg[red]%s$reset_color\n" "$?" >&2
|
||||
}
|
||||
TRAPEXIT() {
|
||||
rm $prompt_state_file
|
||||
[[ -r $prompt_state_file ]] && rm $prompt_state_file
|
||||
}
|
||||
# }}}
|
||||
# {{{ plugins
|
||||
|
|
Loading…
Reference in a new issue