OSX Strange bash prompt

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?

Regards,
Richard
ddp---bash---265-24-et-migration-et-ddp.
LVL 1
Richard Coffree-commerce Product ManagerAsked:
Who is Participating?
 
ozoConnect With a Mentor Commented:
echo $PS1
PS1='ohymeng2:\W \u\$'
man bash | grep -A50 '^P.*R.*O.*M.*P.*T.*I.*N.*G'
0
 
Richard Coffree-commerce Product ManagerAuthor Commented:
Hi ozo,

I do not understand your answer.
You proposed me to define my prompt including the string I was to suppress!
0
 
ozoCommented:
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?
0
 
Richard Coffree-commerce Product ManagerAuthor Commented:
Okay.
I does not understand why ohymeng2 appears in my prompt.

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

Regards
0
 
ozoCommented:
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.
0
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.

All Courses

From novice to tech pro — start learning today.