Add quick resume in zsh via C-z

This commit is contained in:
Daniel Lynn 2025-04-16 14:26:21 -05:00
parent 8d9a798078
commit f1e9c49940
Signed by: daniel
GPG Key ID: 28496A140E180A9D

9
zsh.d/resume.zsh Normal file
View File

@ -0,0 +1,9 @@
# Allow Ctrl-z to toggle between suspend and resume
function Resume {
fg
zle push-input
BUFFER=""
zle accept-line
}
zle -N Resume
bindkey "^Z" Resume