Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

If I open my Terminal app in Mac OS X it looks like this

tabalugas-macbook:~ tabaluga$

I want to customize this shell, so the Username tabaluga won't show up. The Shell should look like this

mymacbook:~ hello$

what do I have to type?

share|improve this question

migrated from Sep 8 '10 at 0:46

This question came from our site for professional and enthusiast programmers.

PS1="mymacbook:\w hello$ "

See the PROMPTING section of man bash

share|improve this answer
Thanks Matthew, it looks now like this tabalugas-macbook.local:~ hello$ any Idea how to convert the "tabalugas-macbook.local" into "mymacbook" thankyou for your efforts – tabaluga Sep 7 '10 at 18:19
thankyou, thankyou, thankyou – tabaluga Sep 7 '10 at 18:27
@tabaluga, please "accept" the answer to give credit. – Chris Page Aug 26 '11 at 0:18

Prompt Magic

Why stick with the standard boring shell prompt when you can easily make it colorful and more informative? In this tip, Daniel Robbins will show you how to get your shell prompt just the way you like it, as well as how to dynamically update your X terminal's title bar.

share|improve this answer

Your Answer


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