[arch-general] User Environment Setup in Arch Linux?
David C. Rankin
drankinatty at suddenlinkmail.com
Thu Apr 23 12:29:37 EDT 2009
Vincent Schumaker wrote:
>
> David,
>
> Bash won't source ~/.bashrc unless it's a login shell. Try
> creating/editing ~/.bash_profile. Check the "Startup Scripts" section in
> the bash entry of Wikipedia. http://en.wikipedia.org/wiki/Bash
Yes,
That why if you source the ~/.bashrc file in /etc/profile, you always get your
bashrc sourced regardless of whether it is a login or interactive shell. If I
create a separate ~/.bash_profile, then I have to maintain 2 sets of aliases, etc.
Cheating and reading ahead... I like Jordy's approach of softlinking
~/.bashrc_profile -> ~/.bashrc That would work if its not sourced in /etc/profile.
--
David C. Rankin, J.D.,P.E.
Rankin Law Firm, PLLC
510 Ochiltree Street
Nacogdoches, Texas 75961
Telephone: (936) 715-9333
Facsimile: (936) 715-9339
www.rankinlawfirm.com
More information about the arch-general
mailing list