FG
💻 Software

Bash completion for commands in Mac OS X

Fresh5 days ago
Mar 15, 202640030 views
Confidence Score1%
1%

Problem

How do I get and to autocomplete program names when typing commands, as in Ubuntu's ? For example when I type and press tab, I want the terminal to autocomplete or show me the available commands. OS X does not even auto-complete commands after !

Error Output

sudo port install ca

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Bash completion for commands in Mac OS X

Low Risk

bash-completion adds completion for: Command names after and Macports and Homebrew package names (optional) Hostnames in for commands like Folders on And so on. You can print a list of completion commands with and see the source of a function with . Installing Homebrew or MacPorts and Bash First, you have to install Homebrew or MacPorts according to the instructions. Note: Do not install both, as they conflict. Then, install a newer version of Bash. The built-in Bash in OS X is a little old, an…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment