Skip to content

Commit

Permalink
Disable force-new-prompt, which may cause inf loop on zsh
Browse files Browse the repository at this point in the history
  • Loading branch information
NyaMisty committed Aug 2, 2023
1 parent b5d2725 commit bb78e27
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions zsh_conf/99-configsync.dyn.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,20 @@ if [[ "$USER" == "root" ]] && ! [[ "$HOME" == "/root" ]]; then
return 0
fi

TRAPUSR2 () {
reset_prompt() {
if command -v _p9k_reset_prompt >/dev/null; then
_p9k_reset_prompt
else
zle reset-prompt
fi
}
zle && reset_prompt
}
#TRAPUSR2 () {
# reset_prompt() {
# if command -v _p9k_reset_prompt >/dev/null; then
# _p9k_reset_prompt
# else
# zle reset-prompt
# fi
# }
# zle && reset_prompt
#}
force_new_prompt () {
#kill -USR2 $(exec sh -c 'echo "$PPID"')
kill -USR2 $$

#kill -USR2 $$
}

do_merge() {
Expand Down

0 comments on commit bb78e27

Please sign in to comment.