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.
Super User is a question and answer site for computer enthusiasts and power users. It only takes a minute to sign up.
Sign up to join this communityDefault 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.
To set your tab with to 2 spaces, use this command in the Terminal App:
tabs -2
Replace 2
with your desired width in spaces.
View the full manual for tabs to learn about all options.
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