This is the mail archive of the
cygwin
mailing list for the Cygwin project.
RE: what's wrong with my cygwin command prompt?
- From: "Dave Korn" <dave dot korn at artimi dot com>
- To: <cygwin at cygwin dot com>
- Date: Wed, 22 Nov 2006 12:35:51 -0000
- Subject: RE: what's wrong with my cygwin command prompt?
On 22 November 2006 09:26, nickyeng wrote:
> so , which bashrc file should i edit?
>
> bash.bashrc is same as bashrc file?
>
> what location please tell me.
The system-wide default prompt is set in /etc/profile, but if you edit that,
setup.exe can no longer automatically update it if any new versions of
base-files come along. So it's better to make customisations to the files in
your home dir. Generally, you would modify ~/.bashrc, having first made sure
that ~/.bash_profile invokes .bashrc; that works for both login and nonlogin
shells (and you probably don't care about the prompt for a non-interactive
shell!) Read the bash info page, chapter 6.2 "Bash Startup Files" for a full
explanation of which startup files get used when.
cheers,
DaveK
--
Can't think of a witty .sigline today....
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/