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

8 lines
111 B
Text
Raw Normal View History

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