Skip to content

Instantly share code, notes, and snippets.

@paulbellamy
Last active September 14, 2018 13:24
Show Gist options
  • Save paulbellamy/bd376d275309230de2f2a5fb87266899 to your computer and use it in GitHub Desktop.
Save paulbellamy/bd376d275309230de2f2a5fb87266899 to your computer and use it in GitHub Desktop.
# 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