Skip to content

Instantly share code, notes, and snippets.

@kapb14
Created March 10, 2016 07:42
Show Gist options
  • Select an option

  • Save kapb14/4feb7ea9a8c7872e1dbb to your computer and use it in GitHub Desktop.

Select an option

Save kapb14/4feb7ea9a8c7872e1dbb to your computer and use it in GitHub Desktop.
screenrc sample
startup_message off
vbell off
hardstatus alwayslastline "%{=b}%{G} %{b}%w %=%{kG}%C%A %D,%d/%m/%y"
shelltitle "Shell"
defscrollback 5024
#### Window numbering starts at 1, not 0.
bind c screen 1
bind 0 select 10
escape ^aa
#### Look and feel
caption always "%{= 2m}%{+b w}Screen: %n | %h %=%t %D %d/%m/%y %c:%s"
hardstatus alwayslastline "%-Lw%{= BW}%50>%n%f* %t%{-}%+Lw%< %=% [%{=b)%{Y}%l%{g}]"
#### Our warning of activity
activity "Activity in %t(%n)"
#### Left Right meta key mods
# ALT-,. and ALT-<>
bindkey "^[<" eval number !echo $WINDOW-1|bc
bindkey "^[>" eval number !echo $WINDOW+1|bc
bindkey "^[," prev
bindkey "^[." next
select 1
autodetach on
#### pgup pgdown
termcapinfo xterm*|rxvt* 'ti@:te@'
#### Having this command in your .screenrc would bind the key sequence
#### C-a R' to the `su' command and give it an auto-title name of `root:'.
bind R screen -t '% |root:' sudo bash
bind 'K' kill
msgwait 15
#### termcap stuff
# termcapinfo xterm ti@:te@
#### make the cursor show up in red:
# termcapinfo linux "ve=\E[?25h\E[?17;0;64c"
bind = resize =
bind + resize +1
bind – resize -1
# screen -t Shell 1 bash
# screen -t Shell 2 bash
# screen -t Shell 3 bash
# screen -t Shell 4 bash
# screen -t Shell 5 bash
# screen -t Shell 6 bash
# screen -t Shell 7 bash
screen -t Shell 8 bash
screen -t Shell 9 bash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment