Skip to content

Instantly share code, notes, and snippets.

@andrewwheal
Created May 13, 2013 08:41
Show Gist options
  • Save andrewwheal/5566972 to your computer and use it in GitHub Desktop.
Save andrewwheal/5566972 to your computer and use it in GitHub Desktop.
A basic .screenrc config file
# Initial screens
screen -t eg 0 ssh user@host -t 'cd /file/path;bash'
screen -t ssh 9
# Hardstatus... duh
hardstatus on
hardstatus alwayslastline
hardstatus string '%{= kG}%{=kw}%?%-Lw%?%{r}(%{W}%n*%f%t%?(%u)%?%{r})%{w}%?%+Lw%?%?%{g}'
# Autodetach session on hangup instead of terminating screen completely
autodetach on
# allow normal scroll back in Putty
termcapinfo xterm ti@:te@
# fix nano bug
altscreen on
# show current working directory in status bar
caption always "%h"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment