Skip to content

Instantly share code, notes, and snippets.

@ippa
Created May 30, 2014 06:58
Show Gist options
  • Save ippa/679abffe581202c212db to your computer and use it in GitHub Desktop.
Save ippa/679abffe581202c212db to your computer and use it in GitHub Desktop.
a .screenrc with colored tabs navigated with ctrl+arrowkeys
startup_message off
scrollback 5000
termcapinfo rxvt-unicode ti@:te@ #enable SHIFT-PGUP / SHIFT-PGDOWN scroll
terminfo rxvt-unicode ti@:te@:
term screen-256color
setenv LC_CTYPE en_US.UTF-8
defutf8 on
setenv DISPLAY ':0'
nonblock on
vbell off
msgwait 10
screen -t tab1 1
screen -t tab2 2
bind = resize =
bind + resize +1
bind - resize -1
bind _ resize max
bind c screen 1 # Window numbering starts at 1, not 0.
bind 0 select 10
select 1
bindkey "^<" prev
bindkey "^z" next
# CTRL+arrow key for Putty
bindkey "^[[D" prev
bindkey "^[[C" next
# CTRL+arrow keys for XSHell
bindkey "\033[1;5D" prev
bindkey "\033[1;5C" next
caption always "%{= Bw}%-w%{= mW}%n %t%{-}%+w %-= @%H - %LD %d %LM - %c"
#'k' black
#'r' red
#'g' green
#'y' yellow
#'b' blue
#'m' magenta
#'c' cyan
#'w' white
#'d' default color
#'.' unchanged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment