Skip to content

Instantly share code, notes, and snippets.

@jeromedalbert
Last active April 27, 2016 20:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jeromedalbert/3ec3125819adf97a9aa9d54cc7dd3553 to your computer and use it in GitHub Desktop.
Save jeromedalbert/3ec3125819adf97a9aa9d54cc7dd3553 to your computer and use it in GitHub Desktop.
Ctrl-z In n Out
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment