user2727195
user2727195

Reputation: 7330

Mac Terminal shows the name of a network machine on the prompt

Once I launch the terminal app, I see a network machine name before my name, any idea how to fix it.

attached screenshot.

the name before : (colon) is a network machine nameenter image description here

Edit:

i went to system preferences and turned off file sharing, but it's still there (will check again after rebooting computer)

Upvotes: 1

Views: 3122

Answers (2)

Michael Dautermann
Michael Dautermann

Reputation: 89509

This has nothing to do with FileSharing and everything to do with the hostname that the DNS server (usually a dynamic address-ing DHCP thing) assigns you.

So what you really want to do is modify your Bash prompt.

And here is a tutorial that talks about how to do it.

Upvotes: 1

TooShyToAsk
TooShyToAsk

Reputation: 194

You can set a custom prompt by editing your ~/.bashrc file. Just add:

export PS1="\W \$"

If you have no .bashrc file in your user home directory just create one. :D

Upvotes: 0

Related Questions