每次我有超过4个标签时,我真的很想知道哪一个是活动。 到现在为止,我曾经受益于rxvt tabbing系统。它在没有显示的标签旁显示一个*,但有一个活动。例如,当您在IRC频道上时,它非常有用。 我如何用zsh/screen来做到这一点?如何在GNU Screen hardstatus标签中显示有活动?
这里是我的.zshrc:
function precmd {
echo -ne "\033]83;title zsh\007"
}
function preexec {
local foo="$2 "
local bar=${${=foo}[1]}
echo -ne "\033]83;title $bar\007"
}
和我.screenrc
hardstatus off
hardstatus alwayslastline
hardstatus string '%{= kG}[ %{G}%H %{g}][%= %{= kw}%?%-Lw%?%{r}(%{W}%n*%f%t%?(%u)%?%{r})%{w}%?%+Lw%?%?%= %{g}][%{B} %m-%d %{W} %c %{g}]'
[...]
shell "/usr/bin/zsh"
aclchg :window: -rwx #?
aclchg :window: +x title