SHARE
TWEET

Untitled

a guest Mar 22nd, 2019 80 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. key[Home]=${terminfo[khome]}
  2. key[End]=${terminfo[kend]}
  3. key[Insert]=${terminfo[kich1]}
  4. key[Delete]=${terminfo[kdch1]}
  5. key[Up]=${terminfo[kcuu1]}
  6. key[Down]=${terminfo[kcud1]}
  7. key[Left]=${terminfo[kcub1]}
  8. key[Right]=${terminfo[kcuf1]}
  9. key[PageUp]=${terminfo[kpp]}
  10. key[PageDown]=${terminfo[knp]}
  11.  
  12. [[ -n "${key[Home]}"    ]]  && bindkey  "${key[Home]}"   beginning-of-line
  13. [[ -n "${key[End]}"     ]]  && bindkey  "${key[End]}"    end-of-line
  14. [[ -n "${key[Insert]}"  ]]  && bindkey  "${key[Insert]}" overwrite-mode
  15. [[ -n "${key[Delete]}"  ]]  && bindkey  "${key[Delete]}" delete-char
  16. [[ -n "${key[Up]}"      ]]  && bindkey  "${key[Up]}"     up-line-or-beginning-search
  17. [[ -n "${key[Down]}"    ]]  && bindkey  "${key[Down]}"   down-line-or-beginning-search
  18. [[ -n "${key[Left]}"    ]]  && bindkey  "${key[Left]}"   backward-char
  19. [[ -n "${key[Right]}"   ]]  && bindkey  "${key[Right]}"  forward-char
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top