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?

link|improve this question
feedback

migrated from stackoverflow.com Sep 8 '10 at 0:46

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

2 Answers

PS1="mymacbook:\w hello$ "

See the PROMPTING section of man bash

link|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
feedback

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.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown