Nicer captions, a hardstatus line, and title updating (currently not
very good).
if [ -t 0 ]; then
## Fancy highlighting in some terminals.
if [ -t 0 ]; then
## Fancy highlighting in some terminals.
+ marker=${STY+'\[\ek\e\\\]'}
case "$TERM" in
linux*|screen*|xterm*|vt100*|eterm*)
case "$(tput bold)" in
case "$TERM" in
linux*|screen*|xterm*|vt100*|eterm*)
case "$(tput bold)" in
fi
## Build the prompt string.
fi
## Build the prompt string.
- PS1="$nl$bold$left$sec_l$u\\h$sec_r \\w$right$unbold"
+ PS1="$nl$bold$left$sec_l$u\\h$sec_r \\w$marker$right$unbold"
PS2="$PS1 $bold>$unbold "
fi
PS2="$PS1 $bold>$unbold "
fi
## Copyright message is now boring.
startup_message off
## Copyright message is now boring.
startup_message off
+
+## Caption and status lines.
+shelltitle ]|bash:
+caption splitonly "%{=br Cb}%?%F%{Yr}%?%3n %t%=%? [%h]%?"
+hardstatus alwayslastline "%{=r Cb}%-Lw%{+b Y}%n%F %t%{-}%+Lw%=%H %Y-%m-%d %c:%s"