Skip to content

Instantly share code, notes, and snippets.

@ambakshi
Created April 30, 2014 21:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ambakshi/643e1ba25fc730f72665 to your computer and use it in GitHub Desktop.
Save ambakshi/643e1ba25fc730f72665 to your computer and use it in GitHub Desktop.
screenrc
# screenrc
encoding UTF-8
# Behaviour
termcapinfo xterm ti@:te@
termcapinfo xterm 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm' # Tell screen how to set colors. AB = background, AF=foreground
#attrcolor b ".I" # Allow bold colors - NB: This fucks up dircolors in iTerm2
defbce "on" # Erase background with current bg color
altscreen on
#term xterm-256color
#term screen-256color-bce
# Settings
defscrollback 90000
startup_message off
vbell off
# Statusline
hardstatus on
hardstatus alwayslastline
hardstatus string '%{= k}[ %{G}%H %{g}][%= %{=kw}%?%-Lw%?%{r}(%{W}%n*%f%t%?(%u)%?%{r})%{w}%?%+Lw%?%?%= %{g}][%{B}%Y-%m-%d %{W}%c %{g}]'
# Default screens, C-a :number <id> renumbers it
#screen -t rootsh sudo su -
#number 0
#screen -t ipython ipython
#number 9
screen -t bash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment