Skip to content

Instantly share code, notes, and snippets.

@poemdexter
Created November 1, 2013 15:01
Show Gist options
  • Save poemdexter/7266732 to your computer and use it in GitHub Desktop.
Save poemdexter/7266732 to your computer and use it in GitHub Desktop.
do the cool screen thing that david welborn showed me.
# Supress screen's startup message
startup_message off
# Define a bigger scrollback, default is 100 lines
defscrollback 10000
# An alternative hardstatus to display a bar at the bottom listing
# the windownames and highlighting the current windowname in blue.
hardstatus alwayslastline "%{.bW}%-w%{.rW}%n %t%{-}%+w %=%{..G} %H%{..Y} %m/%d %C%a "
# Execute .bash_profile on startup
shell -$SHELL
# Use C-t instead of C-a as this makes more sense for Emacs
# escape ^tt
# Detach on hangup
autodetach on
#Attempts at Xterm/PuTTY title bar
#termcapinfo screen*|xterm*|vt* G0
#termcapinfo xterm* 'hs:ts=\E]0;:fs=\007:ds=\E]0;\007'
#termcapinfo xterm* 'hs:ts=\E]0;:fs=\007:ds=\E]2;\007'
#echo -n 'BlahBlah'
setenv TMOUT ''
#Almost
#echo -n '^[]2;foo^G'
echo -n "^[]2;$CAPTION^G"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment