Once I found a fancy function to handle ctrl-z behaviour. As seems that you use zsh and in a similar way, here it is:
ctrl-z
zsh
fancy-ctrl-z () { if [[ $#BUFFER -eq 0 ]]; then BUFFER="fg" zle accept-line else zle push-input zle clear-screen fi } zle -N fancy-ctrl-z bindkey '^Z' fancy-ctrl-z
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Once I found a fancy function to handle
ctrl-z
behaviour. As seems that you usezsh
and in a similar way, here it is: