Re: [SLUG] A bash question

From: Matt (gopackgo@tampabay.rr.com)
Date: Fri Sep 14 2001 - 10:55:14 EDT


On Friday 14 September 2001 13:55, you wrote:
> Hi all:
> I've moved since I last saw my `bash shell' book, perhaps
> someone can tell me off the top of their head:
>
> Last night I tried to add an alias to my `profile' file
> but it didn't show up when I entered alias, in fact I see a
> different set of aliases than I see in /etc/profile.
> (the operating aliases are old with the wrong paths)
> `whereis' found /etc/profile (and the directory `/etc/profile.rc')
> `find' could not find anything named profile. ???
> What else can set or control the aliases? I did have
> enlightenment running, although I was working in a console.
>
> 73 (= Best Regards) de: (= this is) Ron ka4inm@qsl.net
> Please visit my HAM web site at: http://www.qsl.net/ka4inm

I believe bash looks for .bash_profile and .bashrc in your home directory.
Add or uncomment the following lines to your .bash_profile:

if [ -f ~/.bashrc ]; then
    source ~/.bashrc
fi

Then edit your .bashrc and add your aliases to that file. Re-login and your
aliases should be added to your shell environment.

Matt

# chmod a+x /bin/laden



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 19:21:15 EDT