View previous topic :: View next topic |
Author |
Message |
knekten n00b
Joined: 17 Sep 2002 Posts: 22 Location: Sweden
|
Posted: Thu Sep 19, 2002 8:47 pm Post subject: problems with .bashrc |
|
|
uhu, problems again :p
this time i can't get the aliases i put in the .bashrc file to work. the location on the file is /home/user/.bashrc
i've added this line:
alias ls='ls --color=always'
now, shouldn't bash list all files n directories in color? is it something i've forgotten? or is there something else i need to do to get it work?
oh, i forgot to tell: my install is gentoo 1.2 with the stage3 tarball =) |
|
Back to top |
|
|
Technetium n00b
Joined: 30 Jul 2002 Posts: 16 Location: Vancouver, BC, Canada
|
Posted: Thu Sep 19, 2002 10:04 pm Post subject: |
|
|
Did you
> source .bashrc
after updating your .bashrc file? |
|
Back to top |
|
|
Technetium n00b
Joined: 30 Jul 2002 Posts: 16 Location: Vancouver, BC, Canada
|
Posted: Thu Sep 19, 2002 10:06 pm Post subject: |
|
|
Yup. Worked for me. |
|
Back to top |
|
|
knekten n00b
Joined: 17 Sep 2002 Posts: 22 Location: Sweden
|
Posted: Thu Sep 19, 2002 11:57 pm Post subject: |
|
|
yup, now it works for me too =)
thanks |
|
Back to top |
|
|
vers_iq Apprentice
Joined: 18 May 2002 Posts: 264
|
Posted: Fri Sep 20, 2002 12:17 am Post subject: |
|
|
If im not mistaken, ~/.bashrc will not be seen by bash but ~/.bash_profile. So everytime ~/.bashrc in modified we will not see the effect until we tell bash to look at it by command "source". To make matter easier i add this line: Code: | if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
|
in my ~/.bash_profile |
|
Back to top |
|
|
|