* .bashrc not sourced @ 2016-03-29 15:04 Gary Furash 2016-03-29 17:03 ` Ken Brown 0 siblings, 1 reply; 2+ messages in thread From: Gary Furash @ 2016-03-29 15:04 UTC (permalink / raw) To: cygwin OS: Windows 7, Windows 10 Cygwin: latest, x64 When I log on w/ Mintty or Bash (via the bat file) it takes me to my home directory but doesn't automatically source .bashrc. If I hand type "source .bashrc" it then sources it. -- gary furash | furashgary@gmail.com, 520-907-2470 -- 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 ^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: .bashrc not sourced 2016-03-29 15:04 .bashrc not sourced Gary Furash @ 2016-03-29 17:03 ` Ken Brown 0 siblings, 0 replies; 2+ messages in thread From: Ken Brown @ 2016-03-29 17:03 UTC (permalink / raw) To: cygwin On 3/29/2016 11:04 AM, Gary Furash wrote: > When I log on w/ Mintty or Bash (via the bat file) it takes me to my > home directory but doesn't automatically source .bashrc. It's only in non-login shells that .bashrc gets sourced by default. If you want it to be sourced in login shells, you should do that in your ~/.bash_profile file. (See the section on startup files in the bash manual.) For example, here's what the default .bash_profile does: $ cat /etc/defaults/etc/skel/.bash_profile [...] # ~/.bash_profile: executed by bash(1) for login shells. [...] # User dependent .bash_profile file # source the users bashrc if it exists if [ -f "${HOME}/.bashrc" ] ; then source "${HOME}/.bashrc" fi Ken -- 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 ^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-03-29 17:03 UTC | newest] Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2016-03-29 15:04 .bashrc not sourced Gary Furash 2016-03-29 17:03 ` Ken Brown
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).