LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   SUSE / openSUSE (https://www.linuxquestions.org/questions/suse-opensuse-60/)
-   -   Hoow to add new patht to the bashrc.file (https://www.linuxquestions.org/questions/suse-opensuse-60/hoow-to-add-new-patht-to-the-bashrc-file-485961/)

mperez 09-22-2006 06:55 AM

Hoow to add new patht to the bashrc.file
 
hi,

I need add the following statements to .bashrc file(i dont how to locate this file! help!)

EGS_HOME=home/user78/egsnrc_mp
EGS_CONFIG= home/user78/HEN_HOUSE/specs/i686-pc-linux-gnu-g77.conf
export EGS_HOME EGS_CONFIG
. /home/user78/HEN_HOUSE/scripts/egsnrc_bashrc_additions




help me:)

tronayne 09-22-2006 07:18 AM

It's pretty easy -- but there are a couple of rules: no spaces and use absolute paths (put the slash in front of home).

So
cd <this gets you into your home directory>
vi .bashrc <this file may or may not already exist>
EGS_HOME=/home/user78/egsnrc_mp
EGS_CONFIG=/home/user78/HEN_HOUSE/specs/i686-pc-linux-gnu-g77.conf
export EGS_HOME EGS_CONFIG <assuming HEN_HOUSE is already defined!>
Save the file.
Log out, log back in, and you'll have those variables set in your environment. To see them,
echo ${EGS_HOME}
echo ${EGS_CONFIG}
Also, take a look at "man bash" about local or personal initialization files (.basrc is one).

mperez 09-22-2006 08:45 AM

thaks
 
thank u
huao, you got it.


but i hsve used kate editor. but the program works.

crace. see ya


All times are GMT -5. The time now is 12:28 PM.