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.

Post a comment

comments powered by Disqus

You might also enjoy

View all posts

Profile picture

Sunaina Pai

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