Skip to content

Instantly share code, notes, and snippets.

@harperreed
Created November 5, 2009 19:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save harperreed/227296 to your computer and use it in GitHub Desktop.
Save harperreed/227296 to your computer and use it in GitHub Desktop.
# based off of http://wearehugh.com/public/2007/03/screenrc
# and http://diveintomark.org/archives/2007/03/15/good-easy-2007
# ~/.screenrc
# UTF-8 everywhere
defutf8 on
# disable Ctrl-S/Ctrl-Q "flow control"
defflow off
# skip intro
startup_message off
# detach on disconnect
autodetach on
# use regular audible bell
vbell off
# use backtick for prefix key instead of Ctrl-A
#escape ``
# make the shell in every window a login shell
shell -$SHELL
# connect windows to the display so programs like mplayer can find it when
# we're inside a screen in a terminal application in a graphical environment
setenv DISPLAY ':0'
# print wackier status messages
nethack on
# restore window contents after using (e.g.) vi
altscreen on
# show MPD info in status bar
backtick 1 5 5 hostname
# Set the caption on the bottom line:
# window-list <nowplaying> <mm/dd/yy> <HH:MM>am/pm
caption always "%{= kw}%-w%{= BW}%n %t%{-}%+w %-= %1` %m/%d/%y %C:%s%a"
# default windows
screen -t
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment