[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde
Subject:    Re: KDE enhanced shell?
From:       "Don 'Duck' Harper" <duck () duckserv ! duckland ! org>
Date:       1998-02-16 10:16:51
[Download RAW message or body]


On Mon, 16 Feb 1998 15:34:37 +0200 Sami Vaskuu penned:
:-) > anyone think about making a KDE enhanced shell, just taking tcsh or bash and
:-) > have it talk to it's "window" to tell it what directory it is it, and what
:-) > program it is running....
:-)  There is no need to do a special shell for that. Zsh can display 
:-)  current directory in the title bar with a simple function in .zshrc.

And in bash:

if [ "$PS1" ] || [ $OS_SYS = "SunOS" ]; then
  HOST="`hostname 2>/dev/null`"
  export HOST
  if [ $TERM = 'xterm' ] || [ $TERM = 'xterm-color' ]; then
    PS1='\[\033]0;$HOST\007\]\h:\u \w> '
  else
    PS1='\h:\u \w> '
  fi
  export PS1 
fi

Does it quite nicely. :)

Duck

--
Don Harper              | work: duck@colltech.com office: (214) 769-2877 
Team Lead, Dallas       | Pager: (800) Sky-Page, pin 303-7055
Collective Technologies | http://www.colltech.com http://www.duckland.org
   A Pencom Company     | home: duck@duckland.org

I do not have diplomatic immunity.

================================================================================
                   +++ the KDE project mailing lists +++
To unsubscribe from this list send mail to kde-request@kde.org with the 
                         **Subject** unsubscribe. 
================================================================================

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic