Skip to content

Instantly share code, notes, and snippets.

@madorb
Created October 17, 2012 20:06
Show Gist options
  • Save madorb/3907817 to your computer and use it in GitHub Desktop.
Save madorb/3907817 to your computer and use it in GitHub Desktop.
My screen config #slalomdev
defscrollback 30000
termcapinfo xterm ti@:te@
#overwrite default escape sequence of Ctrl-a to be Ctrl-o (Ctrl a is nice to keep as it brings you to start of line)
escape ^Oo
# Don't display the copyright page
startup_message off
# tab-completion flash in heading bar
vbell off
caption string "%?%F%{= Bk}%? %C%A %D %d-%m-%Y %{= kB} %t%= %?%F%{= Bk}%:%{= wk}%? %n "
hardstatus alwayslastline
hardstatus string '%{= kG}[ %{G}%H %{g}][%= %{= kw}%?%-Lw%?%{r}(%{W}%n*%f%t%?(%u)%?%{r})%{w}%?%+Lw%?%?%= %{g}][%{B} %d/%m %{W}%c %{g}]'
#if you use bash it will keep the screen title as below, zsh seems to overwrite it with current dir
screen -t "scrap" 0
screen -t "scrap2" 1
#Create a screen starting in this directory
#chdir /Users/madorb/dev/src
#screen -t "src" 2
#screen -t "something" 3
#select the default screen to be in control when screen started
select 0
Cheat sheet:
Add .screenrc to ~
Start by running: "screen"
Control key is ^-o
^-o, n = next screen (right)
^-o, p = previous screen (left)
^-o, c = create a new screen
^-o, A = set name for screen
^-o, <num> = switch to screen <num>
^-o,S = split the screen
^-o,tab = switch to other half of screen
For full list see: http://www.gnu.org/software/screen/manual/screen.html (note that in this config ^-a is remapped to ^-o)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment