zsh-delete-prompt
November 6, 2023 ยท View on GitHub
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