Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
    

1 Answer 1

up vote 12 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 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 at 11:27

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.