Sunaina Pai Blog Trips About

Change Terminal Prompt in Mac OS X

Published on 2014-10-06 by Sunaina Pai

When you open a Terminal in Mac OS X, the default command prompt displayed is a very long name which goes like this: <ComputerName>:<CurrentDirectory> <UserName>$. In my case it was Sunainas-MacBook-Pro:~ sunaina$, quite boring!

I prefer something like sunaina@MacBook:~$, commonly used in the Linux world. I did the following customizations.

Play around with the prompt escapes for the PS1 shell variable and see what you prefer.


You might also enjoy

View all posts
RSS

Profile picture

Sunaina Pai

Avid learner, Movie buff, Gadget freak, Food lover, Travel enthusiast