Skip to content

Instantly share code, notes, and snippets.

@keithkim
Created March 13, 2013 01:45
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 keithkim/5148743 to your computer and use it in GitHub Desktop.
Save keithkim/5148743 to your computer and use it in GitHub Desktop.
Linux screen configuration (.screenrc). Instead of ^C, use ^O. And use ^K for copy mode.
shell -$SHELL
startup_message off
defscrollback 5000
shelltitle "$ |bash"
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}]'
# caption always "%{= kw}%-w%{= BW}%n %t%{-}%+w %-= %c"
activity "%c activity -> %n%f %t"
caption always "%{= Wk}%-w%{= Bw}%n %t%{-}%+w %-="
term screen-256color
escape ^Oo
bindkey "^[k" eval "copy" "stuff ^b" # enter copy mode and move up one page
bindkey "^k" eval "copy" "stuff k" # enter copy mode and move up one line
bindkey -m "^[k" stuff ^b # move up one page
bindkey -m "^k" stuff k # move up one line
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment