Skip to content

Instantly share code, notes, and snippets.

@gaving
Created December 24, 2009 09:05
Show Gist options
  • Save gaving/263094 to your computer and use it in GitHub Desktop.
Save gaving/263094 to your computer and use it in GitHub Desktop.
zmodload -i zsh/parameter
insert-last-command-output() {
LBUFFER+="$(eval $history[$((HISTCMD-1))])"
}
zle -N insert-last-command-output
bindkey "^X^L" insert-last-command-output
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment