OSX Strange bash prompt

Posted on 2014-12-17
Medium Priority
Last Modified: 2014-12-17
Hi all,

In the attached file, you can see what I saw in my current prompt.
I really do not understand why “ohymeng2” appears.

Can you remind me how to set the prompt using the system variables and so on?

Question by:Richard Coffre
  • 3
  • 2
LVL 85

Accepted Solution

ozo earned 1500 total points
ID: 40504414
echo $PS1
PS1='ohymeng2:\W \u\$'
man bash | grep -A50 '^P.*R.*O.*M.*P.*T.*I.*N.*G'

Author Comment

by:Richard Coffre
ID: 40504511
Hi ozo,

I do not understand your answer.
You proposed me to define my prompt including the string I was to suppress!
LVL 85

Expert Comment

ID: 40504520
You asked "Can you remind me how to set the prompt using the system variables and so on?"
Do you want to suppress the string?  What do you want to set it to?

Author Comment

by:Richard Coffre
ID: 40504547
I does not understand why ohymeng2 appears in my prompt.

Because you showed me how to set my prompt, it will solve my “issue”.

LVL 85

Expert Comment

ID: 40504565
echo $PS1
will show the current setting of $PS1, which may explain why ohymeng2 appears there.
Otherwise, you may have to find where $PS1 is being set.
Typically it could be set in /etc/profile or ~/.bash_profile or ~/.bashrc
But you may also have sourced other initialization scripts.
If you have done so, the command you used may be in your history.

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

In this article we will discuss some EI Capitan Mail app issues and provide some manual process to resolve them.
This article shows how to use a free utility called 'Parkdale' to easily test the performance and benchmark any Hard Drive(s) installed in your computer. We also look at RAM Disks and their speed comparisons.
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
If you are looking for an automated tool which can generate reports for Outlook emails and other items from PST file, then you can go for Kernel PST Reporter tool. The reports which are created by this tool are helpful to analyze and understand PST …

600 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question