84669 person learning
152542 person learning
20005 person learning
5487 person learning
7821 person learning
359900 person learning
3350 person learning
180660 person learning
48569 person learning
18603 person learning
40936 person learning
1549 person learning
1183 person learning
32909 person learning
我用Python+Shell写了一个命令行程序, 其命令参数多以--开头, 此时输入整个单词比较不友好, 欲提供自动补全功能在众多命令行工具中,git的Tab自动补全很强大:
--
子命令能自动补全
带--开头的参数能自动补全
我想提供这种功能, 那么它的实现机制是怎样的?
自己猜想: 要额外提供一些shell函数?
欢迎选择我的课程,让我们一起见证您的进步~~
Refer to the content under /etc/bash_completion.d/ and write it yourself
Try oh-my-zsh?
Refer to the content under /etc/bash_completion.d/ and write it yourself
Try oh-my-zsh?