blob: 8ab2979133efda46a4ce1990f4d159da69d603e6 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
|
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
|