Понадобится ~/.zshrc, ~/.screenrc — конфиг screen'а, ~/.zlogin и ~/.zlogout по вкусу.
Ссылки:
http://xgu.ru/wiki/Man:screen
http://zsh.sourceforge.net/
http://xtalk.msk.su/~ott/ru/writings/zsh/zsh-refcard.pdf
http://www.opennet.ru/search.shtml?method=and&format=builtin-long&config=htdig&restrict=&exclude=&words=zsh
man zsh
man screen
1.Zsh
vi ~/.zshrc:
case $TERM in
xterm*|rxvt)
precmd () { print -Pn "\e]0;%n@%m: %~\a" }
preexec () { { print -Pn "\e]0;%n@%m: $1\a"}; local CMD=${1[(wr)^(*=*|sudo|-*)]} }
;;
screen)
precmd () { print -Pn "\033k%~\033\\" }
preexec () { { print -Pn "\033k$1\033\\" }; local CMD=${1[(wr)^(*=*|sudo|-*)]} }
;;
esac
2.Screen
vi ~/.screenrc
hardstatus alwayslastline "%c:%s %-Lw%{= BW}%50>%n%f* %t%{-}%+Lw%<"
Выводит внизу время (%c и %s), нумерацию с именами оконо.
3.Небольшие памятки:
Для работы прокрутки (scrollback) в ~/.screenrc пишем/редактируем defscrollback 1000, теперь ctrl+a+esc (1 раз).