[nmglug] editing bash
Nick Frost
nickf at nickorama.com
Tue Apr 7 14:28:38 PDT 2009
BrianO'Keefe wrote:
>
> Thanks Nick. Would I just then create the .bashrc file in my home
> directory and then do the commands as you've written in a shell as
> opposed to adding the lines to the .bashrc file?
Well, if the environment variables are needed to run the application
under your user account, you would add those lines to your
existing .bashrc. If you do not have a .bashrc you can create one, or
copy the one that should be in /etc/skel/.bashrc into your home
directory and edit the copy in your homedir.
Once you have changed the contents of .bashrc you can tell the shell
to source the file by executing this command at the BASH prompt.
source .bashrc
which avoids the need to re-spawn a shell or logout/login.
or if you are not in your homedir you can do this;
source ~/.bashrc
I hope the helps. If you want to see if the environment variables
propagated correctly, you can do that with by typing;
export
in the BASH shell. If you want to check environment data you can type
/usr/bin/env
or (one some systems)
/bin/env.
-Nick
--
----------------------------------------
Nicholas S. Frost
7 Avenida Vista Grande #325
Santa Fe, NM 87508
nickf at nickorama.com
----------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nmglug.org/pipermail/nmglug-nmglug.org/attachments/20090407/d4df0323/attachment.htm>
More information about the nmglug
mailing list