1) Edit ~/.zshrc
2) Add the following entries:
bindkey -s “
To insert the correct keystroke above, hit Ctrl-V then press they key to replace.
My section for .zshrc for a standard full-key Mac KB is below:
——— Begin copy/paste ————
# Setting Keypad info:
bindkey -s "^[Oq" "1"
bindkey -s "^[Or" "2"
bindkey -s "^[Os" "3"
bindkey -s "^[Ot" "4"
bindkey -s "^[Ou" "5"
bindkey -s "^[Ov" "6"
bindkey -s "^[Ow" "7"
bindkey -s "^[Ox" "8"
bindkey -s "^[Oy" "9"
bindkey -s "^[Op" "0"
bindkey -s "^[OX" "="
bindkey -s "^[Oo" "/"
bindkey -s "^[Oj" "*"
bindkey -s "^[Om" "-"
bindkey -s "^[Ok" “+”
# NOTE-- The ^M below was added by the following key combinations: Ctrl-V, then pressing Enter
bindkey -s "^[OM" "^M”
——— End copy/paste ————
Enjoy!
PS: If you don’t know what Zsh is, take a look at this site:
http://ohmyz.sh/
#Awesomesauce
No comments:
Post a Comment