每次我有超過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