This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: .profile not sourced?


On 6 April 2011 11:04, David Sastre wrote:
>> > On 4/5/2011 4:47 PM, philippe roux wrote:
>> >> I have a file ~/.profile which contains some alias like
>> >> and ./bash_profile file containing the lines
>
> When using bash as a login shell, the existence of .bash_profile
> prevents from .profile being sourced.

True, but Philippe said he had this in .bash_profile:

# source the users profile if it exists
if [ -f "${HOME}/.profile" ] ; then
 source "${HOME}/.profile"
fi

Might be an idea for base-files actually, allowing for bash-specific
settings in .bash_profile while having settings common across shells
in .profile.

Andy

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]