Skip to content

Instantly share code, notes, and snippets.

@InSuperposition
Created May 7, 2012 15:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save InSuperposition/2628333 to your computer and use it in GitHub Desktop.
Save InSuperposition/2628333 to your computer and use it in GitHub Desktop.
GNU Screen settings file
#Ctrl-a :source .screenrc# I use control+a for beginning-of-line, this remaps it to the tick/tilda key# #escape ``  
# Bind tick+e to show the tick character since tick+tick is too convenient to toggle windows
# escape `e
# Sets scrollback buffer to x lines
defscrollback 10000
# Enables ability to use scrollbar to scrollback
termcapinfo xterm* ti@:te@
# Turn off start up message can view message with Ctrl-a . startup_message off
# Turn off visual alert
vbell off
# detach on hangup
autodetach on
# Set the altscreen so that when you quit vi, it will go back to
# what it was before
altscreen on
# ??? needs details
shelltitle "$ |bash"# Display localhost name in shell
shell -${SHELL}
# Defaults to UTF-8 encoding
# defutf8 on
# ??? need details
nonblock on# setup the caption
hardstatus alwayslastline
hardstatus string '%{= kw}[ %{= kb}%H%{= kw} ][%= %{= kw}%?%-Lw%?%{r}(%{W}%n*%f%t%?(%u)%?%{r})%{w}%?%+Lw%?%?%= ][%{r} %m/%d/%y %C %A %{w}]%{w}'
caption string "%?%F%{= Bk}%? %C%A %D %d-%m-%Y %{= kB} %t%= %?%F%{= Bk}%:%{= wk}%? %n "# Bind keys to
bind 'q' quit
# when screen starts open multiple sessions. syntax: screen -t label order "command"
# screen -t masada 0
# screen -t server 1 ssh -t username@server "cd ~/logs/file/; bash"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment