Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: the konsole title bar
- X-seq: zsh-users 11677
- From: "William Scott" <wgscott@xxxxxxxxxxxxxxxxxx>
- To: linux_milano@xxxxxxxx
- Subject: Re: the konsole title bar
- Date: Sat, 28 Jul 2007 08:54:18 -0700 (PDT)
- Cc: zsh-users@xxxxxxxxxx
- Importance: Normal
- In-reply-to: <f8fj85$9ud$1@xxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <f8fj85$9ud$1@xxxxxxxxxxxxx>
When I wrote that (complete with my mis-spelling of label) I am afraid I
only tested it extensively on iTerm, a third-party terminal emulator on os
x.
I added a few extra lines for the konsole tab, but what you get is the
same as what I get, so this is my fault, not yours.
Sorry....
pol wrote:
>
> I am using the following command in /etc/zsh/zshrc to change the title bar
> and tab bar according to the current directory:
>
> precmd () {
> tab_lable="$PWD:h:t/$PWD:t"
> rlength="20" # number of characters to appear before truncation
> from
> the left
>
> dcop "$KONSOLE_DCOP_SESSION" renameSession "$tab_lable[-$rlength,-1]"
>
> }
>
> When running vim, the running command is added to <current dir>, in the
> title and tab names.
> However, as vim has been closed, title bar and tab name take the form:
> <current dir> Konsole <current dir>
>
> That is not what expected
>
> What is wrong?
>
> thank you
>
> --
> Pol
>
Messages sorted by:
Reverse Date,
Date,
Thread,
Author