Mailing List Archive

[OT] pwd as konsole title
Hi,

How to configure konsole title to show current directory
(when konsole is waiting for command)?

Amdrew

--
gentoo-user@gentoo.org mailing list
Re: [OT] pwd as konsole title [ In reply to ]
quoth the Andrew Gaydenko:
> Hi,
>
> How to configure konsole title to show current directory
> (when konsole is waiting for command)?
>
> Amdrew

Try this:
http://dreaming.org/~giles/bashprompt/howto/book1.html

In particular:
http://www.shelluser.net/~giles/bashprompt/howto/xterm-title-bar-manipulations.html

-d
--
Part of the problem since 1976
http://badcomputer.no-ip.com
Get my public key from
http://keyserver.linux.it/pks/lookup?op=index&search=bulliver
"...the number of UNIX installations has grown to 10, with more expected..."
- Dennis Ritchie and Ken Thompson, June 1972
Re: [OT] pwd as konsole title [ In reply to ]
Andrew Gaydenko wrote:

>Hi,
>
>How to configure konsole title to show current directory
>(when konsole is waiting for command)?
>
>Amdrew
>
>--
>gentoo-user@gentoo.org mailing list
>
>
>
>
>
konsole -T $PWD

--
gentoo-user@gentoo.org mailing list
Re: [OT] pwd as konsole title [ In reply to ]
It doesn't change title in sync with pwd.

Andrew

======= On Wednesday 22 September 2004 13:58, Ralph wrote: =======
Andrew Gaydenko wrote:

>Hi,
>
>How to configure konsole title to show current directory
>(when konsole is waiting for command)?
>
>Amdrew
>
>--
>gentoo-user@gentoo.org mailing list
>
>
>
>
>
konsole -T $PWD

--
gentoo-user@gentoo.org mailing list



--
gentoo-user@gentoo.org mailing list
Re: [OT] pwd as konsole title [ In reply to ]
Peter, thanks, it works!

======= On Wednesday 22 September 2004 16:00, Peter Ruskin wrote: =======
On Wednesday 22 September 2004 12:57, Peter Ruskin wrote:
> Add this to /etc/profile:
> export PS1='\[\033[01;31m\]\u@\h \[\033[01;34m\]\w \$ \[\033[00m\]'
>
> ...and this to ~/.bashrc:
> source /etc/profile

oh, forgot this for ~/.bashrc:
# Change the window title of X terminals
case $TERM in
xterm*|rxvt|eterm)
PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME%%.*}:
${PWD/$HOME/~}\007"'
;;
screen)
PROMPT_COMMAND='echo -ne "\033_${USER}@${HOSTNAME%%.*}:
${PWD/$HOME/~}\033\\"'
;;
esac

--
Peter


--
gentoo-user@gentoo.org mailing list