Skip to content

Instantly share code, notes, and snippets.

@fabioyamate
Created May 22, 2015 11:44
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 fabioyamate/071058d1d54c1817328c to your computer and use it in GitHub Desktop.
Save fabioyamate/071058d1d54c1817328c to your computer and use it in GitHub Desktop.
.screenrc file
# http://www.gnu.org/software/screen/manual/html_node/Command-Summary.html#Command-Summary
# Turn off start message
startup_message off
termcapinfo rxvt-unicode 'hs:ts=\E]2;:fs=\007:ds=\E]2;screen\007'
term screen
# Message to display in the status line when activity is detected in a
# monitored window.
activity "activity in %n (%t) [%w:%s]~"
# Detach session on hangup instead of terminating screen completely.
autodetach on
altscreen on
# do highlight current display
sorendition 04 07
hardstatus alwayslastline "%-Lw%{+r}%50> %n%f %t %{-}%+Lw%< %-= %H | %{= kw}%0c, %d/%m/%y%{-} "
# starts with 1 instead of 0
screen -t " bash" 1
bind c screen 1
# VIM like bindings
bind j focus down
bind k focus up
bind t focus top
bind b focus bottom
# bind h prev
# bind l next
# bind ^l next
# bind P paste
# bind K quit
# bind -c shiftalt C next
# bind -c shiftalt D prev
# bindkey ^[^[O command -c shiftalt # PuTTY Alt
# bindkey ^[[c next
# bindkey ^[[d prev
# bindkey ^[Oc next
# bindkey ^[Od prev
# bindkey "q" quit
# bindkey "w" eval kill
# bindkey "t" screen 1
# bindkey "" next
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment