Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
the konsole title bar
- X-seq: zsh-users 11676
- From: pol <linux_milano@xxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: the konsole title bar
- Date: Sat, 28 Jul 2007 16:18:45 +0200
- Mail-copies-to: linux_milano@xxxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- Reply-to: linux_milano@xxxxxxxx
- Sender: news <news@xxxxxxxxxxxxx>
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