What I meant was whether the new env variable needed to be added like the PS
variable or we could just add it like it is done at the shell.

The PS variable in the file is declared as below.
if [ "$PS1" ]; then
    case $TERM in
    xterm*)
        if [ -e /etc/sysconfig/bash-prompt-xterm ]; then
            PROMPT_COMMAND=/etc/sysconfig/bash-prompt-xterm
        else
            PROMPT_COMMAND='echo -ne "\033]0;${USER}@
${HOSTNAME%%.*}:${PWD/#$HOME/~}\007"'
        fi

But in my case since I didnt require any ifs and thens, I actually  did what
you said, opened the file and added the line as the second last line in the
file and then sourced it. This solved the purpose.

TMPDIRECTORY=/usr/PATH/tmp
# vim:ts=4:sw=4
Regards,
Ashish


On Fri, Nov 21, 2008 at 2:00 PM, Arun Khan <[EMAIL PROTECTED]> wrote:

> On Friday 21 Nov 2008, Ashish Verma wrote:
> > I want this to be system wide, can you tell me how to add it to
> > /etc/bashrc file.
>
> By editing the file and adding the changes you want.
>
> -- Arun khan
>
> _______________________________________________
> To unsubscribe, email [EMAIL PROTECTED] with
> "unsubscribe <password> <address>"
> in the subject or body of the message.
> http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
>
_______________________________________________
To unsubscribe, email [EMAIL PROTECTED] with 
"unsubscribe <password> <address>"
in the subject or body of the message.  
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc

Reply via email to