A Blog about technology, linux, peer2peer, cool new downloads and software development.

Monday, January 28, 2008

.screenrc

A .screenrc file that :
- Displays a nice status line on the bottom of the screen
- opens 8 terminals by default.
- switch between windows with Alt-Arrow keys & Alt number

---------- 8< ---------- 8< ---------- 8< ---------- 8< ----------
$ cat .screenrc
defscrollback 3000

screen
screen
screen
screen
screen
screen
screen
screen

startup_message off

bindkey "^[1" select 0
bindkey "^[2" select 1
bindkey "^[3" select 2
bindkey "^[4" select 3
bindkey "^[5" select 4
bindkey "^[6" select 5
bindkey "^[7" select 6
bindkey "^[8" select 7
bindkey "^[9" select 8

bindkey -k k; quit

bindkey "^[^[OD" prev
bindkey "^[^[OC" next

select 0

caption string "%{= KW} %-w%{= BW}=%n %t=%{-}%+w %=%{= Yb} %H %{= KW} %{= Yb} %c:%s %d/%m/%Y"
caption always