在Windows系统中,使用tab
键可以自动补全命令,而在Mac中不能直接实现。要想实现自动补全,可以采用以下方法:
Step 1
在命令行输入:
nano .inputrc
Step 2
进入 .inputrc 的编辑界面,输入如下语句:
set completion-ignore-case on set show-all-if-ambiguous on TAB: menu-complete
Step 3
Control
+O
保存。重启terminal生效。
Step 4
测试一下效果:
参考链接
A
u
t
h
o
r
:
C
h
i
e
r
Author: Chier
Author:Chier