Skip to content

Instantly share code, notes, and snippets.

@skizhak
Last active May 31, 2016 23:39
Show Gist options
  • Select an option

  • Save skizhak/053177c684bd80728a6b2228d1a885d3 to your computer and use it in GitHub Desktop.

Select an option

Save skizhak/053177c684bd80728a6b2228d1a885d3 to your computer and use it in GitHub Desktop.
gnu-screen-rc
# Taken from various places on internet.
startup_message off
# Change escape trigger to CTRL+g
# CTRL+a is used in bash CLI to get to start of line
escape ^Gg
# Setting scrollback lines.
defscrollback 1024
# To allow bold colors.
attrcolor b ".I"
#screen $SHELL -c 'screen -X caption always "$STY"'
hardstatus on
hardstatus alwayslastline "%{b kw}%H %{r}%1` %{w} | %{g}%c %{w}| %{y}%d.%m.%Y %{w}| %{g}%l %{w}| %{-b kw}%u %-Lw%{= rW}%50> %n%f %t %{-}%+Lw%<"
#hardstatus string '%{= kG}[ %{G}%H %{g}][%= %{=kw}%?%-Lw%?%{r}(%{W}%n*%f%t%?(%u)%?%{r})%{w}%?%+Lw%?%?%= %{g}][%{B}%Y-%m-%d %{W}%c %{g}]%{w} %l'
# http://superuser.com/questions/126606/how-to-get-mac-os-x-terminal-app-and-screen-vim-scrolling-to-play-nice/316900#316900
termcapinfo xterm-256color|xterm-color|xterm|xterms|xs|rxvt ti@:te@
altscreen off
# To add transparent color on bottom status label
caption string "%{kk}XXXXXXX"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment