Created
September 28, 2011 18:09
-
-
Save cbrinker/1248714 to your computer and use it in GitHub Desktop.
.screenrc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ------------------------------------------------------------------------------ | |
# SCREEN BOOLEANS | |
# ------------------------------------------------------------------------------ | |
startup_message off # Show copyright during strartup? | |
deflogin off # Is window Logged in? | |
autodetach on # Autodetach upon hangup | |
crlf off # Copying of text regions with cr or just lf | |
vbell off # Visual Bell off, (Using Audio Bell) | |
defutf8 on # Run everything in unicode, allowing display of i18n | |
#nethack on # More entertaining messaging | |
#defflow on # will force screen to process ^S/^Q | |
#defsilence off # Should windows be monitored for silence by default | |
#verbose on # Show command for windows when they're resurrected | |
defscrollback 10000 # Bigger scrollback buffer please | |
msgminwait 1 # Seconds to delay before showing newer message | |
msgwait 3600 # Seconds a message is displayed if not interrupted | |
silencewait 5 # Seconds till inactivity is called silence | |
#zombie cr # keep dead windows around till told to exit | |
#vbellwait 2 # Seconds to wait after each vbell's message | |
maptimeout 0 # Esc needs to be quicker than this | |
layout autosave on | |
# ------------------------------------------------------------------------------ | |
# SCREEN MESSAGE SETTINGS | |
# ------------------------------------------------------------------------------ | |
activity "activity in %n (%t)^G" | |
bell_msg "vbell in %n (%t)^G" | |
vbell_msg "bell in %n (%t)^G" | |
pow_detach_msg "Screen session of \$LOGNAME \$:cr:\$:nl:ended." | |
backtick 1 2 2 /Users/USERNAME/bin/istatus | |
caption always "%{+b}%{= kb} %-Lw%{= kW}%n%f* %t%{-}%+Lw%< %{bw}" | |
hardstatus alwayslastline "%{.Yk}%{-b} %H %{.kg} %l %{-b}%-=%{dc}%1`%{.km} %D %m/%d %02c:%s" | |
windowlist title " flags # name %>%28=hardstatus %-=%l |%0c:%s" | |
windowlist string " %f%07=%n %t %>%28=%h" | |
sorendition "+b kG" # Bold Black/Green (Text marking/printing of messages) | |
# ------------------------------------------------------------------------------ | |
# SCREEN KEYBINDINGS | |
# ------------------------------------------------------------------------------ | |
# Unbind bad defaults | |
bind ^k | |
bind ^\ | |
# Bind better defaults | |
bind \\ quit | |
bind K kill | |
bind I login on | |
bind O login off | |
bind } history | |
# ------------------------------------------------------------------------------ | |
# TERMINAL SETTINGS | |
# ------------------------------------------------------------------------------ | |
term xterm-color | |
# The vt100 description does not mention "dl". *sigh* | |
termcapinfo vt100 dl=5\E[M | |
# Set the hardstatus prop on gui terms to set the titlebar/icon title | |
termcapinfo xterm*|rxvt*|kterm*|Eterm* hs:ts=\E]0;:fs=\007:ds=\E]0;\007 | |
# An alternative hardstatus to display a bar at the bottom listing the | |
# windownames and highlighting the current windowname in blue. (This is only | |
# enabled if there is no hardstatus setting for your terminal) | |
#hardstatus lastline "%-Lw%{= BW}%50>%n%f* %t%{-}%+Lw%<" | |
# set these terminals up to be 'optimal' instead of vt100 | |
termcapinfo xterm*|linux*|rxvt*|Eterm* OP | |
# Change the xterm initialization string from is2=\E[!p\E[?3;4l\E[4l\E> | |
# (This fixes the "Aborted because of window size change" konsole symptoms found | |
# in bug #134198) | |
termcapinfo xterm 'is=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;4;6l' | |
# To get screen to add lines to xterm's scrollback buffer, uncomment the | |
# following termcapinfo line which tells xterm to use the normal screen buffer | |
# (which has scrollback), not the alternate screen buffer. | |
#termcapinfo xterm|xterms|xs|rxvt ti@:te@ | |
# Enable non-blocking mode to better cope with flaky ssh connections. | |
defnonblock 5 #means that the whole window doesn't hang if an individual does | |
# ------------------------------------------------------------------------------ | |
# STARTUP SCREENS | |
# ------------------------------------------------------------------------------ | |
# Example of automatically running some programs in windows on screen startup. | |
# | |
# The following will open top in the first window, an ssh session to monkey | |
# in the next window, and then open mutt and tail in windows 8 and 9 | |
# respectively. | |
# | |
# screen top | |
# screen -t monkey ssh monkey | |
# screen -t mail 8 mutt | |
# screen -t daemon 9 tail -f /var/log/daemon.log |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment