This also displays "-" for the last active window which is very useful.
# available.
shell zsh
+# Don't "login" windows (= add them to the utmp database) by default. Not
+# useful for me and the "$" flag clutters the window flags (displayed with
+# %Lw).
+deflogin off
+
# TERMINAL
caption always "$s"
unsetenv s
# Always display the status line with open windows and the hostname.
-setenv s "$s%w" # - number and names of windows
+setenv s "$s%Lw" # - number and names of windows, L displays window flags
setenv s "$s%=" # - right align the following text
setenv s "$s%l" # - load average
setenv s "$s " # - space