Skip to content

Instantly share code, notes, and snippets.

@braidn
Created May 7, 2014 13:46
Show Gist options
  • Save braidn/847209944a1f2377c568 to your computer and use it in GitHub Desktop.
Save braidn/847209944a1f2377c568 to your computer and use it in GitHub Desktop.
Ctrl Z to fg
fancy-ctrl-z () {
if [[ $#BUFFER -eq 0 ]]; then
fg
zle redisplay
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