diff --git a/pages/common/bindkey.md b/pages/common/bindkey.md new file mode 100644 index 0000000000..ec79950dc1 --- /dev/null +++ b/pages/common/bindkey.md @@ -0,0 +1,20 @@ +# bindkey + +> Add keybindings to Z-Shell. +> More information: . + +- Bind a hotkey to a specific command: + +`bindkey "{{^k}}" {{kill-line}}` + +- Bind a hotkey to a specific key sequence: + +`bindkey -s '^o' 'cd ..\n'` + +- View keymaps: + +`bindkey -l` + +- View the hotkey in a keymap: + +`bindkey -M main`