Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 stackoverflow.com Sep 8 '10 at 0:46

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

add comment

2 Answers

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
add comment
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
add comment

Your Answer

 
discard

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