Skip to content

Instantly share code, notes, and snippets.

@tk3369
Last active October 18, 2020 06:06
Show Gist options
  • Save tk3369/256e28c3119f65091286b09105e9b6c9 to your computer and use it in GitHub Desktop.
Save tk3369/256e28c3119f65091286b09105e9b6c9 to your computer and use it in GitHub Desktop.
screenrc
termcapinfo xterm Z0=\E[?3h:Z1=\E[?3l:is=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;4;6l
wall Welcome to screen
# See http://www.gnu.org/software/screen/manual/html_node/String-Escapes.html
hardstatus alwayslastline
# #hardstatus string '%{= mK}%-Lw%{= KW}%50>%n%f* %t%{= mK}%+Lw%< %{= kG}%-=%D %d %M %Y %c:%s%{-}'
#hardstatus string '%{= kG}[ %{G}%H %{g}][%= %{= kw}%?%-Lw%?%{r}(%{W}%n*%f%t%?(%u)%?%{r})%{w}%?%+Lw%?%?%= %{g}][%{B} %d/%m %{W}%c %{g}]'
hardstatus string '%{= wr}[%{B}%S%{r}][%= %{= wr}%?%-Lw%?%{b}(%{B}%n*%f%t%?(%u)%?%{b})%{b}%?%+Lw%?%?%= %{r}][%{B} %Y-%m-%d %c %{r}]'
# remap Ctrl-A
escape ^Jj
# reload config
bind R eval "source $HOME/.screenrc" "echo '.screenrc reloaded!'"
# splitting
#bind v split
#bind j focus down
#bind k focus up
#bind l focus right
#bind h focus left
# resize vertically
bind { resize -v -10%
bind } resize -v +10%
# resize horizontally
bind ( resize -h -10%
bind ) resize -h +10%
# scrollback size
defscrollback 100000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment