Skip to content

Instantly share code, notes, and snippets.

@ryandotsmith
Created October 28, 2010 04:25
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ryandotsmith/650633 to your computer and use it in GitHub Desktop.
Save ryandotsmith/650633 to your computer and use it in GitHub Desktop.
screenrc file
# copied from @solidsnack
nethack on
vbell on
defutf8 on
defscrollback 16384
backtick 1 1 1 date -u +%Y-%m-%dT%TZ
logtstamp on
logtstamp after 250
logtstamp string "%1`"
logfile "screenlog.%t.%1`"
bindkey -t "^asudo" screen sudo -s
bindkey -t "^airb" screen irb
bindkey -t "^asup" screen sup
bindkey -t "^airssi" screen irssi
bindkey -t "^ask" screen skype
bindkey -t "^avim" screen vim
bindkey -t "^aemacs" screen emacs
bindkey -t "^aghci" screen ghci
bindkey -t "^apy" screen python
bindkey -t "^al" next
bindkey -t "^ah" prev
caption always "%{+b kG} %=%{-s} %{.K}%-w%{.B}%n %{.G}%t%{.K}%+w%{.G} %{+s} %="
# |C | |L | |I ||R |
#
# |C| makes things bold and sets the colors -- black (k) and green (G)
#
# |I| lists all windows, with the current window a different color
# a big mess, which has to be all run together to get the spacing right
# %-w all windows up to the current window
# %+w all windows following the current window
# %n number of the current window
# %t command in the current window
# %{.K} foreground to gray, background unchanged
# %{.B} foreground to gray, background unchanged
# %{.G} foreground to green, background unchanged
#
# |L| blocks in the left margin
# note the initial space, to make sure the colors take
# with |R| serves to center the text
# %= fill
# %{-s} turn off reverse video
#
# |R| blocks in the right margin
# note the space, to make sure the style change takes
# with |L| serves to center the text
# %{+s} turn standout style back on
# %= fill
#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment