GNU Screen Configuration

~/.screenrc

The below configuration displays a nice status bar at the bottom, as well as add some shortcut keys.

  • The default escape kep is modified from Ctrl+a to Ctrl+z.
  • Use Alt+, and Alt+. to navigate tabs quickly.
hardstatus off
escape ^zz
backtick 1 1200 1200 whoami
bindkey -k k1 next
bindkey ^[. next
bindkey ^[, prev
caption always "%c | %-Lw%{= BW}%50>%n* %t%{-}%+Lw%<"
#scrollback 10000
defscrollback 10000
#unsetenv SSH_AUTH_SOCK
#setenv SSH_AUTH_SOCK /home/$USER/.ssh/agent-screen-socket

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>