Last active
September 14, 2018 13:24
-
-
Save paulbellamy/bd376d275309230de2f2a5fb87266899 to your computer and use it in GitHub Desktop.
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
# ctrl-z on the prompt will resume last | |
# This means, from vim I can ctrl-z to the shell, and ctrl-z back again. | |
foreground-last() { | |
fg % | |
} | |
zle -N foreground-last | |
bindkey '^z' foreground-last |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment