The Computer Oracle

Terminal tab completion

--------------------------------------------------
Rise to the top 3% as a developer or hire one of them at Toptal: https://topt.al/25cXVn
--------------------------------------------------

Music by Eric Matyas
https://www.soundimage.org
Track title: Hypnotic Orient Looping

--

Chapters
00:00 Terminal Tab Completion
00:55 Accepted Answer Score 13
01:21 Answer 2 Score 2
01:45 Thank you

--

Full question
https://superuser.com/questions/53992/te...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#macos #mac #autocomplete #readline

#avk47



ACCEPTED ANSWER

Score 13


Download bash_completion and source it from your .bashrc. Then put contrib/completion/git-completion.bash from the git distribution into bash_completion.d.

Alternatively you can install it via MacPorts.




ANSWER 2

Score 2


For git there is an option available on compilation to support completion.

If you used port to install Git (which I recommend), you can reinstall git with this command

sudo port install git-core +svn+bash_completion+doc

Which will install git with bash completion, git-svn support and docs