Advertisement
hjaltiatlason

InputRC-centos7-history search backwards og forward

Mar 24th, 2021
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.96 KB | None | 0 0
  1. # do not bell on tab-completion
  2. #set bell-style none
  3.  
  4. set meta-flag on
  5. set input-meta on
  6. set convert-meta off
  7. set output-meta on
  8.  
  9. # Completed names which are symbolic links to
  10. # directories have a slash appended.
  11. set mark-symlinked-directories on
  12.  
  13. $if mode=emacs
  14.  
  15. # for linux console and RH/Debian xterm
  16. "\e[1~": beginning-of-line
  17. "\e[4~": end-of-line
  18. # commented out keymappings for pgup/pgdown to reach begin/end of history
  19. #"\e[A": beginning-of-history
  20. #"\e[B": end-of-history
  21. "\e[A": history-search-backward
  22. "\e[B": history-search-forward
  23. "\e[3~": delete-char
  24. "\e[2~": quoted-insert
  25. "\e[5C": forward-word
  26. "\e[5D": backward-word
  27. "\e[1;5C": forward-word
  28. "\e[1;5D": backward-word
  29.  
  30. # for rxvt
  31. "\e[8~": end-of-line
  32. "\eOc": forward-word
  33. "\eOd": backward-word
  34.  
  35. # for non RH/Debian xterm, can't hurt for RH/DEbian xterm
  36. "\eOH": beginning-of-line
  37. "\eOF": end-of-line
  38.  
  39. # for freebsd console
  40. "\e[H": beginning-of-line
  41. "\e[F": end-of-line
  42. $endif
  43.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement