[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: ssh status informations



On Thu, Nov 21, 2002 at 03:15:46PM +0100, Marcus.Wagner@dvidee.de wrote:
> i found a nice fature on redhat 8.0 (sorry, had to test it ;)) ).
> after logging in with putty i get really nice status
> informations in putty's "program-bar" in the form:
> 
> "username@host:/dir"
> 
> has somebody any idea how i can get the same infos
> on a debian system?

Put this in /etc/profile or ~/.bashrc

if [ "$TERM" = "xterm" -o "$TERM" = "xterm-debian" ]; then
   PROMPT_COMMAND='echo -ne "\033]0; ${USER}@${HOSTNAME}:${PWD} \007"'
   export PROMPT_COMMAND
fi

have fun,

Vinai
-- 
Secure eMail with gnupg: See http://www.gnupg.org/

Please avoid sending me Word, Excel or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html

Attachment: pgpJq9M9Znlao.pgp
Description: PGP signature


Reply to: