์ ๋ ๊ฐ๋ฐ์ ์ฉ์ผ๋ก Mac + ZSH๋ฅผ, ์๋ฒ์ฉ์ผ๋ก Gentoo + ZSH๋ฅผ ์ฌ์ฉํ๊ณ ์์ต๋๋ค.
๋ด ํค๋ณด๋์ ์ซ์ ํจ๋ ๋ชจ๋ ๋ฌธ์ (1,2,3,4,5,6,7,8,9,0,., =, /, *,-, +, enter)๋ฅผ ์
๋ ฅ ํ ์ ์์ต๋๋ค.
๊ทธ๋ฌ๋ bash๋ก ๋ณ๊ฒฝํ๋ฉด ํด๋น ํค๋ ๊ด์ฐฎ์ต๋๋ค.
๋ค๋ฅธ ์์ฉ ํ๋ก๊ทธ๋จ์์๋ ํด๋น ํค๋ ๊ด์ฐฎ์ต๋๋ค.
Razer์ BlackWidow ํค๋ณด๋๋ฅผ ์ฌ์ฉํ๊ณ ์์ต๋๋ค.
๋๋ ์ด๊ฒ์ ~/.zshrc
ํ์ผ์ ์ถ๊ฐํ๋ ๊ฒฝํฅ์ด ์์ต๋๋ค.
# Keypad
# 0 . Enter
bindkey -s "^[Op" "0"
bindkey -s "^[On" "."
bindkey -s "^[OM" "^M"
# 1 2 3
bindkey -s "^[Oq" "1"
bindkey -s "^[Or" "2"
bindkey -s "^[Os" "3"
# 4 5 6
bindkey -s "^[Ot" "4"
bindkey -s "^[Ou" "5"
bindkey -s "^[Ov" "6"
# 7 8 9
bindkey -s "^[Ow" "7"
bindkey -s "^[Ox" "8"
bindkey -s "^[Oy" "9"
# + - * / =
bindkey -s "^[Ok" "+"
bindkey -s "^[Om" "-"
bindkey -s "^[Oj" "*"
bindkey -s "^[Oo" "/"
bindkey -s "^[OX" "="
๋งค๋ด์ผ : https://www.gnu.org/software/screen/manual/html_node/Key-Binding.html#Key -Binding
์ถ์ฒ : http://superuser.com/questions/742171/zsh-z-shell-numpad-numlock-doesnt-work
bindkey๋ ์ ์๋ํ์ง๋ง ๊ธฐ๋ณธ์ ์ผ๋ก ์๋ํ๋ ๊ฒ์ ๋ณด๋ฉด ์ข์ ๊ฒ์ ๋๋ค.
# 2654์ ๊ฐ์ ๊ฒ ๊ฐ์ต๋๋ค. ๊ทธ๊ฒ์ # 2735์์ ์ฝ์ ์์๋ ์ ์ฒด smkx / rmkx ๋๋ฌธ์ ๋๋ค.
๊ฐ์ฅ ์ ์ฉํ ๋๊ธ
๋๋ ์ด๊ฒ์
~/.zshrc
ํ์ผ์ ์ถ๊ฐํ๋ ๊ฒฝํฅ์ด ์์ต๋๋ค.๋งค๋ด์ผ : https://www.gnu.org/software/screen/manual/html_node/Key-Binding.html#Key -Binding
์ถ์ฒ : http://superuser.com/questions/742171/zsh-z-shell-numpad-numlock-doesnt-work