Created
May 7, 2014 13:46
-
-
Save braidn/847209944a1f2377c568 to your computer and use it in GitHub Desktop.
Ctrl Z to fg
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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