Skip to content

Commit

Permalink
Revert "Use TRAPCHLD function to refresh prompt"
Browse files Browse the repository at this point in the history
This reverts commit 9a8f9b6.
  • Loading branch information
agkozak committed Oct 17, 2021
1 parent 267822d commit a77f161
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions agkozak-zsh-prompt.plugin.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,6 @@ AGKOZAK[FUNCTIONS]='_agkozak_debug_print
_agkozak_set_git_psvars
_agkozak_zle-keymap-select
TRAPWINCH
TRAPCHLD
_agkozak_vi_mode_indicator
_agkozak_load_async_lib
_agkozak_has_usr1
Expand Down Expand Up @@ -517,14 +516,6 @@ TRAPWINCH() {
zle && zle -R
}

############################################################
# Redraw the prompt when the background jobs count changes
############################################################
TRAPCHLD() {
psvar[11]=${${(%):-%j}#0}
zle && zle reset-prompt
}

############################################################
# For legacy custom prompts: print a vi mode indicator
############################################################
Expand Down

0 comments on commit a77f161

Please sign in to comment.