[arch-general] User Environment Setup in Arch Linux?

Jordy van Wolferen jordz at archlinux.us
Thu Apr 23 12:06:35 EDT 2009


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.


More information about the arch-general mailing list