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