Date: Fri, 8 May 1998 10:36:56 +0000 (GMT) From: "Jason C. Wells" <jcwells@u.washington.edu> To: flygt@sr.se Cc: questions@FreeBSD.ORG Subject: Re: shellscript Message-ID: <Pine.BSF.3.96.980508103523.223E-100000@s8-37-26.student.washington.edu> In-Reply-To: <19980508135719.60843@sr.se>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 8 May 1998, Gunnar Flygt wrote: >Is there (of course there is but, how) a smart way of setting an >environment variable that is one value when not using X and another when the >shell script is run from X? example: when not running in X one may want >$TERM=vt220 and when running in X $TERM=xterm-color. The shell used is bash. Yes. See 'man bash'. There are two rc files for bash. One is called '.bash_profile' for login shells and the the other is called '.bashrc' for non-loging shells such as an xterm. Thank you, | Try some of this. It will show you where you're at. Jason Wells | http://www.freebsd.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.96.980508103523.223E-100000>