Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Default tab width for Mac OS X Terminal.app is 8. I want to change it to 2. How can I do it?

I've found tabs command, but I can't figure out how to use it.

share|improve this question
    
up vote 17 down vote accepted

tabs -2 seems to be the command you need

share|improve this answer
    
Oh, that easy. Thank you! – NVI Feb 18 '10 at 12:42
    
I can't get tabs command to work properly. If I try echo $'12345678|\n\t|' on a new Terminal, I can see the default 8 tab width working correctly. But if I try tabs -4; echo $'1234|\n\t|' I get misaligned pipe symbols. Is this a bug in Terminal? – Tobia Aug 7 '14 at 13:18
    
Works as expected for me with correct alignment. What is your terminal windows size, what version of OSX are you on and what font (and font size) are you using ? – Rob Cowell Aug 8 '14 at 11:27

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .