-
-
Save jrwarwick/87bbf9e219a32dbf2cbe2cade17a013e to your computer and use it in GitHub Desktop.
Yet-Another nice default screenrc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# GNU Screen - main configuration file | |
# All other .screenrc files should source this file to inherit settings. | |
# Author: Christian Wills - [email protected], minor mods [email protected] | |
# Allow bold colors - necessary for some reason | |
attrcolor b ".I" | |
# Tell screen how to set colors. AB = background, AF=foreground | |
termcapinfo xterm 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm' | |
# Enables use of shift-PgUp and shift-PgDn | |
termcapinfo xterm|xterms|xs|rxvt ti@:te@ | |
# Erase background with current bg color | |
defbce "on" | |
# Enable 256 color term | |
term xterm-256color | |
# Cache 30000 lines for scroll back | |
defscrollback 5000 | |
# New mail notification | |
##backtick 101 30 15 $HOME/bin/mailstatus.sh | |
##backtick 102 10 15 $HOME/activeusercount.sh | |
hardstatus alwayslastline | |
# Very nice tabbed colored hardstatus line | |
hardstatus string '%{= Kd} %{= Kd}%-w%{= Kr}[%{= KW}%n %t%{= Kr}]%{= Kd}%+w %-= %{KG} %H%{KW}|%{KY}%102`%{KW}|%Y%m%d%{= Kc} %{-}' | |
# Hide hardstatus: ctrl-a f | |
bind f eval "hardstatus ignore" | |
# Show hardstatus: ctrl-a F | |
bind F eval "hardstatus alwayslastline" | |
screen -t "Logs" | |
stuff "cd /var/log" | |
screen -t "root" | |
stuff "sudo bash" | |
screen -t "Shell" bash |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment