Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

OSX Strange bash prompt

Posted on 2014-12-17
5
Medium Priority
?
167 Views
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?

Regards,
Richard
ddp---bash---265-24-et-migration-et-ddp.
0
Comment
Question by:Richard Coffre
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 84

Accepted Solution

by:
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'
0
 
LVL 1

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!
0
 
LVL 84

Expert Comment

by:ozo
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?
0
 
LVL 1

Author Comment

by:Richard Coffre
ID: 40504547
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
 
LVL 84

Expert Comment

by:ozo
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.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

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

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Deploystudio is a system which can be used to deploy OSX clients and servers within the small/medium or large business environments. The system is built ontop of the OSX Server NetBoot system and uses images & workflows as its core assets. Although …
An introduction to the wonderful sport of Scam Baiting.  Learn how to help fight scammers by beating them at their own game. This great pass time helps the world, while providing an endless source of entertainment. Enjoy!
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 …
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…

597 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