Skip to content

Instantly share code, notes, and snippets.

@mrmichalis
Last active December 19, 2015 04:59
Show Gist options
  • Save mrmichalis/5900775 to your computer and use it in GitHub Desktop.
Save mrmichalis/5900775 to your computer and use it in GitHub Desktop.
~/.screenrc
# ~/.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
#http://serverfault.com/questions/32313/putty-and-screen-and-scroll-back-buffer
termcapinfo xterm ti@:te@
# 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"
caption always "%{= kG}[ %{G}%H %{g}][%= %{=kw}%?%-Lw%?%{r}(%{W}%n*%f%t%?(%u)%?%{r})%{w}%?%+Lw%?%?%= %{g}][%{B}%Y-%m-%d %{W}%c %{g}]"
# default windows
screen -t
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment