Posted By

koorb on 01/17/09


Tagged

Bash input history Complete autocomplete case-insensitive


Versions (?)

.inputrc (Mac OS X) / .bashrc (Linux)


 / Published in: Bash
 

Adds extra functionality to the bash terminal

  1. # this makes the "delete" key work rather than
  2. # just entering a ~
  3. "\e[3~": delete-char
  4.  
  5. # these allow you to use ctrl+left/right arrow keys
  6. # to jump the cursor over words
  7. "\e[5C": forward-word
  8. "\e[5D": backward-word
  9.  
  10. # these allow you to start typing a command and
  11. # use the up/down arrow to auto complete from
  12. # commands in your history
  13. "\e[B": history-search-forward
  14. "\e[A": history-search-backward
  15.  
  16. # this lets you hit tab to auto-complete a file or
  17. # directory name ignoring case
  18. set completion-ignore-case On
  19.  
  20. # I'm not sure what keys these are!
  21. "\e[1~": beginning-of-line
  22. "\e[4~": end-of-line
  23. "\e[5~": beginning-of-history
  24. "\e[6~": end-of-history
  25. "\e[2~": quoted-insert

Report this snippet  

You need to login to post a comment.