Skip to content

Instantly share code, notes, and snippets.

@samuelecarpene
Created February 17, 2016 14:44
Show Gist options
  • Select an option

  • Save samuelecarpene/a6f7d82516095a1bc8cd to your computer and use it in GitHub Desktop.

Select an option

Save samuelecarpene/a6f7d82516095a1bc8cd to your computer and use it in GitHub Desktop.
#--------------------------------
#add it to ~/.zshrc file
#--------------------------------
alias ll="ls -lah"
#http://superuser.com/questions/742171/zsh-z-shell-numpad-numlock-doesnt-work
# Fix numeric 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 "^[Ol" "+"
#bindkey -s "^[Om" "-"
#bindkey -s "^[Oj" "*"
#bindkey -s "^[Oo" "/"
bindkey -s "^[OS" "-"
bindkey -s "^[OR" "*"
bindkey -s "^[OQ" "/"
#sudo showkey -k
bindkey "^[[1~" beginning-of-line
bindkey "^[[4~" end-of-line
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment