Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Nov 2002 20:48:30 -0800
From:      Nathan Kinkade <nkinkade@dsl-only.net>
To:        FreeBSD <freebsd-questions@FreeBSD.ORG>
Subject:   Re: bash .profile issues
Message-ID:  <20021119044830.GO29927@sub21-156.member.dsl-only.net>
In-Reply-To: <985DF46E87E0C047A3670048DBCAD0556A48@andrew.brobus.net>
References:  <985DF46E87E0C047A3670048DBCAD0556A48@andrew.brobus.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Nov 18, 2002 at 11:40:13PM -0500, Tamir Halperin wrote:
> Here's my .profile:
> 
> # $FreeBSD: src/etc/root/dot.profile,v 1.20 1999/08/27 23:24:09 peter Exp $
> #
> PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/X11R6/bin
> :
> export PATH
> HOME=/root
> export HOME
> TERM=${TERM:-cons25}
> export TERM
> PAGER=more
> export PAGER
> PS1="\w#"
> alias 'lu = /usr/libexec/locate.updatedb'
> alias 'seti = cat /var/db/setiathome/state.sah | grep prog'
> alias 'dir = ls -Fl'
> ~
> 
> Questions:
> 1) My aliases don't work. Why?
> 2) When I make a change, let's say to the aliases, I don't know of any other way for it to take immediate affect unless I log out and log back in again. Is there a command approach to this?
> 3) Is there a good tutorial about environment settings and other issues such as the ones I'm struggling with?
> 
> TIA,
> 
> Tamir

First, get that `dir` alias out of there! ;)

Move the quotes around in your alias declarations, like:
alias dir='ls -Fl'

.profile is read once when you start bash, put commands that you
want to be read new with each instance of bash into .bashrc.

Check out `man bash`.

Nathan

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?20021119044830.GO29927>