bin/pip-upgrade: Helper script to upgrade all outdated `pip` packages
[dotfiles.git] / .screenrc
index c06493d18eceb6d3ea2a0dabe290d0fc04827f4c..6f022d9baa22da3ace27922fa15470476389b557 100644 (file)
--- a/.screenrc
+++ b/.screenrc
@@ -1,35 +1,35 @@
 # -------------------------------------------------------------------
 # Settings
 # -------------------------------------------------------------------
-crlf off                     # No Microsoft linebreaks
+crlf off                     # no DOS-style linebreaks
 startup_message off          # bypass GPL notice (we're aware)
-vbell off                    # Use audio bell
+vbell off                    # use audio bell
 defscrollback 15000          # big scrollback
 shell bash                   # don't start login shells
 shelltitle "sh"              # no title by default - set in PS1
-#defmonitor on                # turn on monitoring
-#activity "%c activity <%n>"  # let you know when stuff happens!
 nethack off                  # makes error messages cryptic
 pow_detach_msg "Screen session of \$LOGNAME \$:cr:\$:nl:ended."
 autodetach on
-term xterm-256color
+term screen                  # $TERM="screen"
 
-# Use UTF-8
+# use UTF-8
 defutf8 on
 defencoding UTF-8
 setenv LANG 'en_US.UTF-8'
 
 # status line to display a bar at the bottom listing the window
-# names and highlighting the current windowname in blue.
+# names and highlighting the current windowname.
 # (http://www.ibm.com/developerworks/aix/library/au-gnu_screen/index.html)
-hardstatus alwayslastline "%{.bw}%-w%{.rW}%n %t%{-}%+w %=%{..G} %H %{..Y} "
+# (http://superuser.com/questions/212392/how-to-include-screens-session-name-in-hardstatus)
+hardstatus alwayslastline '%{= K}%-w%{+b .KW}%n %t%{-}%+w %=%{..b} %H (%`) '
+backtick 0 30 30 sh -c 'screen -ls | grep --color=no -o "$PPID[^[:space:]]*"'
 
 # -------------------------------------------------------------------
 # Terminal Emulation Settings
 # -------------------------------------------------------------------
 
 # allow 256 colors
-attrcolor b ".I"   # allow bold colors
+attrcolor b ".I"   # use bright colors for bold text
 termcapinfo xterm* 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm'  # tell screen how to set colors. AB = background, AF=foreground
 defbce on          # erase background with current bg color
 
@@ -78,8 +78,9 @@ bind ^K
 bind \\
 bind ^\
 
-# add some useful key bindings
+# easier windowlist
 bind ' ' windowlist -b
+# shift+0-9 to select screens 10-19
 bind ')' select 10
 bind '!' select 11
 bind '@' select 12