Skip to content

Instantly share code, notes, and snippets.

@txus
Created November 4, 2010 15:58
Show Gist options
  • Save txus/662693 to your computer and use it in GitHub Desktop.
Save txus/662693 to your computer and use it in GitHub Desktop.
My screenrc
# For a complete list of available commands, see http://bit.ly/jLtj
# Message to display in the status line when activity is detected in a
# monitored window.
escape ``
activity "activity in %n (%t) [%w:%s]~"
# Detach session on hangup instead of terminating screen completely.
autodetach on # default: on
# When a bell character is sent to a background window, screen displays a
# notification in the message line. The notification message can be re-defined
# by this command.
bell_msg "bell in %n (%t) [%w:%s]~"
# This command controls the display of the window captions. Normally a caption
# is only used if more than one window is shown on the display.
#caption always "%{= kw}%?%-Lw%?%{+b kw}%n*%t%f %?(%u)%?%{= kw}%?%+Lw%?"
# Select line break behavior for copying.
crlf off # default: off
# Select default utmp logging behavior.
#deflogin off # default: on
# Set default lines of scrollback.
defscrollback 3000 # default: 100
# If set to 'on', screen will append to the 'hardcopy.n' files created by the
# command hardcopy; otherwise, these files are overwritten each time.
hardcopy_append on # default: off
# This command configures the use and emulation of the terminal's hardstatus
# line. The type 'lastline' will reserve the last line of the display for the
# hardstatus. Prepending the word 'always' will force screen to use the type
# even if the terminal supports a hardstatus line.
altscreen on
term screen-256color
bind ',' prev
bind '.' next
#change the hardstatus settings to give an window list at the bottom of the
#screen, with the time and date and with the current window highlighted
hardstatus alwayslastline
#hardstatus string '%{= kG}%-Lw%{= kW}%50> %n%f* %t%{= kG}%+Lw%< %{= kG}%-=%c:%s%{-}'
hardstatus string '%{= kG}[ %{G}%H %{g}][%= %{= kw}%?%-Lw%?%{r}(%{W}%n*%f%t%?(%u)%?%{r})%{w}%?%+Lw%?%?%= %{g}][%{B} %m-%d %{W}%c %{g}]'
#hardstatus alwayslastline '%{= kG}[ %{y}%H %{g}][%15= %>%-Lw%40>%{r}(%{W}%n*%f %t%?(%u)%?%{r})%{g}%+Lw%-22< ][%{c} %Y-%m-%d %c %{g}]'
#
#hardstatus alwayslastline "%{+b kr}[ %H ] %{ky} Load: %l %-=%{kb} %c %Y.%m.%d"
msgwait 15
# Set message displayed on pow_detach (when HUP is sent to screen's parent
# process).
pow_detach_msg "BYE"
# Set the default program for new windows.
shell zsh
# Default timeout to trigger an inactivity notify.
silencewait 20 # default: 30
# Change text highlighting. See http://bit.ly/11RDGZ
sorendition gK
# Do NOT display copyright notice on startup.
startup_message off # default: on
# Set $TERM for new windows. I have more luck with 'linux' than Terminal's
# default 'xterm-color' (^H problems). Comment out to use the default.
#term linux
# Tweak termcap, terminfo, and termcapinfo entries for best performance.
# termcap linux 'AF=\\E[3%dm:AB=\\E[4%dm'
# termcap xterm-color 'AF=\\E[3%dm:AB=\\E[4%dm'
# terminfo linux 'AF=\\E[3%p1%dm:AB=\\E[4%p1%dm'
# terminfo xterm-color 'AF=\\E[3%p1%dm:AB=\\E[4%p1%dm'
# Allow xterm / Terminal scrollbars to access the scrollback buffer. This
# enables the behavior you'd expect, instead of losing the content that scrolls
# out of the window.
termcapinfo linux ti@:te@
termcapinfo xterm-color ti@:te@
# Use visual bell instead of audio bell.
vbell on # default: ???
# Message to be displayed when the visual bell is triggered.
vbell_msg " *beep* "
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment