Re: User Environment Setup in Arch Linux?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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


[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux