Update '.zshrc-mac'

This commit is contained in:
Xiufeng Guo 2022-11-14 15:49:16 +00:00
parent 3ace0089fe
commit b369c6e3d7

View File

@ -117,16 +117,17 @@ export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
# Home # Home
bindkey '\e[1~' beginning-of-line bindkey '\e[1~' beginning-of-line
# End # End
bindkey '\e[4~' end-of-line bindkey '\e[4~' end-of-line
# Delete
bindkey '^[[3~' delete-char
# Keypad # Keypad
# 0 . Enter # 0 . Enter
bindkey -s "^[Op" "0" bindkey -s "^[Op" "0"
bindkey -s "^[Ol" "." bindkey -s "^[On" "."
bindkey -s "^[OM" "^M" bindkey -s "^[OM" "^M"
# 1 2 3 # 1 2 3
bindkey -s "^[Oq" "1" bindkey -s "^[Oq" "1"
@ -140,8 +141,10 @@ bindkey -s "^[Ov" "6"
bindkey -s "^[Ow" "7" bindkey -s "^[Ow" "7"
bindkey -s "^[Ox" "8" bindkey -s "^[Ox" "8"
bindkey -s "^[Oy" "9" bindkey -s "^[Oy" "9"
# + - * / # + - * / =
bindkey -s "^[Ok" "+" bindkey -s "^[Ok" "+"
bindkey -s "^[Om" "-" bindkey -s "^[Om" "-"
bindkey -s "^[Oj" "*" bindkey -s "^[Oj" "*"
bindkey -s "^[Oo" "/" bindkey -s "^[Oo" "/"
bindkey -s "^[OX" "="