.screenrc
escape ^Tt
hardstatus alwayslastline "[%02c] %`%-w%{=b bw}%n %t%{-}%+w"
shelltitle "% |$SHELL"
.zshrc
if [ "$TERM" = "screen" ]; then
precmd(){print -n '\ek\e\\'}
fi
PROMPT='%n@%m:%(5~,%-2~/.../%2~,%~)%# '
こうしておくとステータスラインに実行中のコマンドが出る。
私はgvimを使うのでvimの時はvimと出てほしいもんね。