Awesome
zsh-delete-prompt
Zsh widget to delete the prompt texts within the current line. It is useful when executing pasted commands from the web or README.
Leading Non-alphanumeric + Space
is detected as a prompt.
Install
Just source
the file, and bind to any key you like.
source <path/to/zsh-delete-prompt.zsh>
bindkey "<any-key>" delete-prompt