2022-05-22 17:49:41 +01:00
|
|
|
# bindkey
|
|
|
|
|
|
|
|
> Add keybindings to Z-Shell.
|
|
|
|
> More information: <https://zsh.sourceforge.io/Guide/zshguide04.html>.
|
|
|
|
|
|
|
|
- Bind a hotkey to a specific command:
|
|
|
|
|
|
|
|
`bindkey "{{^k}}" {{kill-line}}`
|
|
|
|
|
2024-02-19 14:13:42 +00:00
|
|
|
- Bind a hotkey to a specific key [s]equence:
|
2022-05-22 17:49:41 +01:00
|
|
|
|
|
|
|
`bindkey -s '^o' 'cd ..\n'`
|
|
|
|
|
2024-02-19 14:13:42 +00:00
|
|
|
- [l]ist keymaps:
|
2022-05-22 17:49:41 +01:00
|
|
|
|
|
|
|
`bindkey -l`
|
|
|
|
|
2024-02-19 14:13:42 +00:00
|
|
|
- View the hotkey in a key[M]ap:
|
2022-05-22 17:49:41 +01:00
|
|
|
|
|
|
|
`bindkey -M main`
|