Re: User Environment Setup in Arch Linux?

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



On Thursday 23 April 2009 17:58:11 Andrei Thorp wrote:
> > What I do is:
> > ln -s ~/.bashrc ~/.bash_profile
> >
> > To always have the same settings
>
> Possibly a bad idea. If you only use your .bashrc to store a couple
> variables, that'll get you by. If you're actually using your .bashrc /
> .zshrc / whatever, that doesn't make sense to do. For example, by
> .zshrc provides a completely new command, sets console-specific
> settings (like mime-type support), overrides the operation of several
> commands so that they may not work as expected in scripts, and so on.
> I think as a general guideline, your profile file should have _just_
> settings like "EDITOR=vim" or "PATH=blah". Maybe you could put aliases
> in there also.
>
> If you want to have "the same settings" in both cases, just have your
> .bashrc source your .bash_profile.
>
> Cheers,
>
> -Andrei Thorp

That is by default:

cat /etc/skel/.bash_profile
. $HOME/.bashrc

But for some reason it doesn't work, I never had problem with a sym link.


[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