Skip to content

Instantly share code, notes, and snippets.

@nobleach
Created June 12, 2014 02:57
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 nobleach/c7e2e3a23fe88cb95dd4 to your computer and use it in GitHub Desktop.
Save nobleach/c7e2e3a23fe88cb95dd4 to your computer and use it in GitHub Desktop.
ctrl-z fanciness for zsh
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