Add quick resume in zsh via C-z
This commit is contained in:
parent
8d9a798078
commit
f1e9c49940
9
zsh.d/resume.zsh
Normal file
9
zsh.d/resume.zsh
Normal 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
|
Loading…
x
Reference in New Issue
Block a user