Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 170
  • Last Modified:

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.
0
Richard Coffre
Asked:
Richard Coffre
  • 3
  • 2
1 Solution
 
ozoCommented:
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

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now