ZSH Control key bindings
Useful ZSH Key Bindings
In order to use these key bindings more comfortably, it is a good choice to switch the L_Control and L_ALT
- Ctrl + u : clear the current line
- Ctrl + a : move to the start of the line
- Ctrl + e : move to the end of the line or complete the command according to the history
- Ctrl + f : move to the next char or complete the command according to the history
- Ctrl + b : move to the previous char
- Ctrl + p : fill with previous command in history
- Ctrl + n : fill with next command in history
- Ctrl + r : search the history command
- Ctrl + y : paste the command
- Ctrl + h : delete the char before the cursor
- Ctrl + d : If the cursor is on a char, it will delete this char. If not, it will list the possible options that you may input
- Ctrl + w : delete the word before the cursor
- Ctrl + k : delete from the cursor to end of the line
- Ctrl + t : swap the two char before the cursor
ZSH Control key bindings
https://dtover.github.io/2020/04/19/ZSH-Control-key-bindings/