Problem
You would like to be able to delete whole words in the terminal using keyboard shortcuts (CTRL+Backspace, CTRL+Del).
Solution
Just add to your ~/.zshrc
file below lines:
bindkey '^H' backward-kill-word
bindkey '^[[3;5~' kill-word
You would like to be able to delete whole words in the terminal using keyboard shortcuts (CTRL+Backspace, CTRL+Del).
Just add to your ~/.zshrc
file below lines:
bindkey '^H' backward-kill-word
bindkey '^[[3;5~' kill-word