In a Terminal, if I type beginning of any command by pressing tab I can see the rest of that command.
However this feature does not work with any words I type after sudo.
How can I complete command names even after I write sudo?
|
OS X has not turned ON as many completion possibilities at the guys behind Ubuntu. In order to add autocompletion to sudo, you should simply add to the file
The description of |
||||
|
|
|
I did fix my problem by installing Bash Completion on Macports. |
|||
|
|
|||
We're looking for long answers that provide some explanation and context. Don't just give a one-line answer: please explain why you're recommending it as a solution. Answers that don't explain anything will be deleted. See Good Subjective, Bad Subjective for more information. |
|||
|
It would help to know what shell you are using. This works for me in both bash and zsh. The completion in zsh is much better than bash. One thing you could do is to type the command you want using tab completion, but before hitting return type |
|||||||||
|
sudo. – patrix♦ Feb 15 at 20:50