Solved

OSX Strange bash prompt

Posted on 2014-12-17
5
150 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
  • 3
  • 2
5 Comments
 
LVL 84

Accepted Solution

by:
ozo earned 500 total points
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

In certain circumstances, a Microsoft Office mac application may fail to save a document to a network server, with the following error message: "There has been a network or file permission error. The network connection may be lost." An article at…
In this article we discuss how to recover the missing Outlook 2011 for Mac data like Emails and Contacts manually.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

743 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now