On Mon, 2003-06-16 at 17:52, Soren Harward wrote:
> I'm still having one little problem with my .bashrc . I've inserted the
> line:
>
> export PROMPT_COMMAND='echo -ne "\033]0;[EMAIL PROTECTED]: ${PWD}\007"'
>
> So that it updates my xterm title bar automatically with where I am.
> However, if I'm directly on a console (not in xterm) it displays the
> string, which has a very annoying beep at the end. So I get a beep with
> evey prompt. Is there a way to check whether I'm on a console or in an
> xterm, so I can disable exporting PROMPT_COMMAND if I'm not in xterm?Check the contents of $TERM. It isn't always accurate, but for your needs it's good enough. -- Stuart Jansen <[EMAIL PROTECTED], AIM:StuartMJansen> "What hole did you dig that up from?" -- my roommate commenting on my taste in music
signature.asc
Description: This is a digitally signed message part
____________________ BYU Unix Users Group http://uug.byu.edu/ ___________________________________________________________________ List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list
