How to Enable Autocomplete in Mac Terminal - Tim Leland (2024)

How to Enable Autocomplete in Mac Terminal - Tim Leland (1)

Usually in a Unix/Linux terminal when you press tab it will autocomplete with several options and then it will list the options below for you to select. This is a great feature if you spend a lotof time in the terminal. You could install ZSHto get these features or if you are like me and like to keep things simple, you can enable autocomplete in the mac terminal using bash.

Enable auto-complete in Mac Os terminal

  1. Type in terminal nano ~/.inputrc
  2. Paste the following on separate lines
  3. set completion-ignore-case onset show-all-if-ambiguous onTAB: menu-complete
  4. Hit control+O to save changes to .inputrc followed by control+X to exit nano
  5. Open a new Terminal window or tab to open a new session with autocomplete enabled
  6. Type and hit the tab key

Let me know if this is helpful in the comments below!

Thanks for reading. Make sure you follow me on Twitter to stay up to date on the progress of my side projects T.LY,Weather Extension, andLink Shortener Extension. If you are interested in the tech I use daily, check out myuses page.

How to Enable Autocomplete in Mac Terminal - Tim Leland (2024)
Top Articles
Latest Posts
Article information

Author: Lilliana Bartoletti

Last Updated:

Views: 6724

Rating: 4.2 / 5 (73 voted)

Reviews: 88% of readers found this page helpful

Author information

Name: Lilliana Bartoletti

Birthday: 1999-11-18

Address: 58866 Tricia Spurs, North Melvinberg, HI 91346-3774

Phone: +50616620367928

Job: Real-Estate Liaison

Hobby: Graffiti, Astronomy, Handball, Magic, Origami, Fashion, Foreign language learning

Introduction: My name is Lilliana Bartoletti, I am a adventurous, pleasant, shiny, beautiful, handsome, zealous, tasty person who loves writing and wants to share my knowledge and understanding with you.