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

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了.inputrc(Mac OS X)/.bashrc(Linux)相关的知识,希望对你有一定的参考价值。

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

以上是关于.inputrc(Mac OS X)/.bashrc(Linux)的主要内容,如果未能解决你的问题,请参考以下文章

如何在Mac OS X上安装 Ruby运行环境

Mac OS X 如何升级系统自带的 Ruby ?

NFS: Mac OS X (server) and Mac OS X (clients)实现思路

Mac OS X安装 Scrapy

如何在 Mac OS X 上装设 LaTeX 以及 CJK 套件

制作 Mac OS X El Capitan 的U盘引导安装