Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

I am using the terminal for some debugging and I noticed that it has stopped displaying my user before the path. Now its displaying (null) like so:

(null):mspgcc-examples dean$

Whats changed? As i've changed no configuration to change it. Viewing the shell variable $PS1 I get the following results:

(null):mspgcc-examples dean$ echo $PS1
\h:\W \u\$
(null):mspgcc-examples dean$ 
share|improve this question
    
please, provide your $PS1 value –  Eir Nym Mar 16 '13 at 15:14
    
Is $PS1 a shell variable? –  Dean Mar 16 '13 at 15:53
    
Yes, use echo $PS1 to display its value. Also: try to open a new tab in Terminal (with Cmd-T) and check the prompt there. –  patrix Mar 16 '13 at 16:12
    
And please check whether apple.stackexchange.com/questions/43063/… solves your problem –  patrix Mar 16 '13 at 16:13

1 Answer 1

You can read through the thread on Apple Discussion Group for details. The most important that some routers doesn't like computer names which can't be part of valid DNS name (English letters, numbers, dashes, underscores).

To name my Mac I use something like Eir-Mac or EirMac and have no problems.

share|improve this answer

Your Answer

 
discard

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.