用惯了windows命令行工具的按Tab自动补全路径功能后,在mac terminal上敲命令很不习惯.其实mac terminal也有这个功能. 在命令行输入nano .inputrc 进入.inputrc的编辑界面,输入如下语句: set completion-ignore-case on set show-all-if-ambiguous on TAB: menu-complete Control+O保存.重启terminal即生效
Input History readline tracks the input history automatically. There are two different sets of functions for working with the history. The history for the current session can be accessed with get_current_history_length()and get_history_item(). That s