diff --git a/home/.zsh/functions/fancy-ctrl-z b/home/.zsh/functions/fancy-ctrl-z new file mode 100644 index 0000000..88b9503 --- /dev/null +++ b/home/.zsh/functions/fancy-ctrl-z @@ -0,0 +1,7 @@ +#! zsh +if [[ -z $BUFFER && -n $jobstates ]]; then + BUFFER=" fg" + zle accept-line +else + zle self-insert '^Z' +fi