zsh/home/.zsh/functions/fancy-ctrl-z

7 lines
111 B
Bash

#! zsh
if [[ -z $BUFFER && -n $jobstates ]]; then
BUFFER=" fg"
zle accept-line
else
zle self-insert '^Z'
fi