How to get a terminal general auto-complete function?
3
votes
2
answers
10172
views
I'm new in macOS and I'm using macOS Sierra,
In my Ubuntu and other Linux-based system, terminal has an auto-complete that helps to complete commands and their options.
For example for
But on my Mac, it just complete first commands and don't help for options or second part of command like **whoami** in
]
I found some Scripts for
wget
and other commands, in additional to command completion, after pressing Tab 2 times, it lists all command options (if any), or in sudo w
it list all commands start with **w**

sudo whoami
,
I mean it don't show a list of all command that start with who
after pressing Tab 2 times in sudo who
[!

git
options at https://github.com/git/git/tree/master/contrib/completion/ , but I want something that do this for all commands and applications.
Is there any solution for that?
Asked by M.A. Heshmat Khah
(231 rep)
Sep 3, 2017, 11:18 AM
Last activity: Oct 28, 2023, 09:01 AM
Last activity: Oct 28, 2023, 09:01 AM