Skip to content

Instantly share code, notes, and snippets.

@barnaby
Created September 27, 2020 10:30
Show Gist options
  • Save barnaby/1fe544ea69648fc1b3d3ef81b7fb62bd to your computer and use it in GitHub Desktop.
Save barnaby/1fe544ea69648fc1b3d3ef81b7fb62bd to your computer and use it in GitHub Desktop.
screenrc file
startup_message off
# if we accidentally hangup, don't be all attached when we come back.
autodetach on
# more scrollbacks!
defscrollback 10000
# disable use of the "alternate" terminal
# thus allowing scrollbars to function as normal in
# many terminal emulators! <3 it
termcapinfo xterm* ti@:te@
# have screen update terminal emulators titlebar
termcapinfo xterm* 'hs:ts=\E]0;:fs=\007:ds=\E]0;\007'
defhstatus "screen ^E (^Et) | $USER@^EH"
# but dont print i.e. "bell in window 0" status craps
#hardstatus off
shelltitle "$ |bash"
hardstatus alwayslastline
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}]'
defflow off
#rvm needs this
shell -${SHELL}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment