Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Feb 2000 20:34:10 +0200
From:      Giorgos Keramidas <keramida@ceid.upatras.gr>
To:        David Wiard <dave@srn.com>
Cc:        jimmy martin <hate00@hotmail.com>, freebsd-questions@freebsd.org
Subject:   Re: alias's
Message-ID:  <20000215203410.A13013@hades.hell.gr>
In-Reply-To: <3.0.5.32.20000211143912.009715d0@paladin.srn.com>; from dave@srn.com on Fri, Feb 11, 2000 at 02:39:12PM -0800
References:  <20000211045849.3263.qmail@hotmail.com> <20000211045849.3263.qmail@hotmail.com> <20000212000440.A15261@hades.hell.gr> <3.0.5.32.20000211143912.009715d0@paladin.srn.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Feb 11, 2000 at 02:39:12PM -0800, David Wiard wrote:
> >Oh, and another thing.  You can always put the aliases in .bashrc, where
> >they will be seen by all interactive invocations of Bash.  If they are
> >put into .bash_profile, they're only valid for login shells :>
> 
> or, if all your shells are interactive, like me, make .bash_profile a
> symlink to .bashrc so all shells are login shells.  :)

Actually, this might not work if your .bashrc does stuff like:

	PATH="$HOME/bin:$PATH"

since you'll end up with $HOME/bin twice in your PATH.  I have my
.bash_profile set to:

	[ -f ~/.bashrc ] && . ~/.bashrc
	exit 0

ever since I found this out.

    RCS file: /usr/home/cvs/charon/.bash_profile,v
    ----------------------------
    revision 1.10
    date: 2000/01/06 01:59:54;  author: charon;  state: Exp;  lines: +3 -31
    Moved most of the code to the ~/.bashrc script.
    ----------------------------

-- 
Giorgos Keramidas, < keramida @ ceid . upatras . gr >
For my public PGP key: finger keramida@diogenis.ceid.upatras.gr
PGP fingerprint, phone and address in the headers of this message.


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000215203410.A13013>