Created
March 26, 2014 14:13
-
-
Save braidn/9784150 to your computer and use it in GitHub Desktop.
Zsh Double Ctrl Z function
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