File tree 1 file changed +9
-0
lines changed
1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -124,6 +124,7 @@ AGKOZAK[FUNCTIONS]='_agkozak_debug_print
124
124
_agkozak_set_git_psvars
125
125
_agkozak_zle-keymap-select
126
126
TRAPWINCH
127
+ TRAPCHLD
127
128
_agkozak_vi_mode_indicator
128
129
_agkozak_load_async_lib
129
130
_agkozak_has_usr1
@@ -516,6 +517,14 @@ TRAPWINCH() {
516
517
zle && zle -R
517
518
}
518
519
520
+ # ###########################################################
521
+ # Redraw the prompt when the background jobs count changes
522
+ # ###########################################################
523
+ TRAPCHLD () {
524
+ psvar[11]=${${(% ):-% j} # 0}
525
+ zle && zle reset-prompt
526
+ }
527
+
519
528
# ###########################################################
520
529
# For legacy custom prompts: print a vi mode indicator
521
530
# ###########################################################
You can’t perform that action at this time.
0 commit comments