# Easier than remembering to always run from non-X
unsetenv DISPLAY
# Likewise, for charset
setenv LC_CTYPE en_US.UTF-8
#escape ``
altscreen on
termcapinfo xterm* 'hs:ts=\E]0;:fs=\007:ds=\E]0;\007'
termcapinfo rxvt* 'hs:ts=\E]62;:fs=\007:ds=\E]0;\007'
hardstatus alwayslastline
hardstatus string '%{= g}[%{b} %H %{g}] [%= %{w}%?%-Lw%?%{r}(%{W}%n %t%? (%u)%?%?: %h%?%{r})%{w}%?%+Lw%?%?%= %{g}][ %{K}%l %{g}][ %{B}%c %{g}]%{W}'
#messages
activity "%c activity -> %n%f %t"
bell "%c bell -> %n%f %t^G"
vbell_msg " *beep* "
startup_message off
deflogin on
autodetach on
shell zsh
defscrollback 5000
defutf8 on
#bind s select zsh
# Make shift-PgUp and shift-PgDn work like they do in xterm. (Note that this
# requires xterm to be configured to pass those keys through, and not try to
# act on them itself.)
bindkey "^[[5;2~" eval "copy" "stuff ^u"
bindkey -m "^[[5;2~" stuff ^u
bindkey -m "^[[6;2~" stuff ^d
# Window numbering starts at 1, not 0.
#f1 and f2 move prev and next
bindkey -k F1 prev
bindkey -k F2 next
# Using tab to move around regions gets annoying. These help.
bind ^j focus down
bind ^k focus up
# Resize the current region. The space will be removed from or added to
# the region below or if there's not enough space from the region above.
bind = resize =
bind + resize +3
bind - resize -3