LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Editing .bashrc (https://www.linuxquestions.org/questions/linux-newbie-8/editing-bashrc-120623/)

AceKidCool 11-27-2003 10:24 PM

Editing .bashrc
 
I would like to add an alias, I know you can store them in .bashrc... Now I just need to find out how to do it...

Here is what I have done...

I opened .bashrc in kedit , it read as follows

# .bashrc

# User specific aliases and functions

# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi

Now the alias I want to add is /usr/bin/aim. I want to shorten this so when I am at a shell all I have to do is type ' aim ' at the prompt sign. $aim&

What do I add to the .bashrc to achieve this..

THanks, just getting going on linux!!!!

AceKidCool 11-27-2003 10:35 PM

nevermind just figured it out


alias aim=/usr/bin/aim


for anyone else that comes across this question..

BYE

contrasutra 11-27-2003 10:38 PM

you should just be able to type "aim" into a console anyway. /usr/bin is in your PATH.

AceKidCool 11-27-2003 10:46 PM

Quote:

Originally posted by contrasutra
you should just be able to type "aim" into a console anyway. /usr/bin is in your PATH.
Oh, didn't know that. Thank you. I understand.


All times are GMT -5. The time now is 03:01 PM.