Created
June 9, 2011 07:58
-
-
Save alexindigo/1016282 to your computer and use it in GitHub Desktop.
my .screenrc
This file contains 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
termcapinfo xterm-256color|xterm-color|xterm|xterms|xs|rxvt ti@:te@ | |
backtick 1 10 10 me | |
backtick 2 10 10 ut | |
caption string "%?%F%{= Bk}%? %C%A %D %d-%m-%Y %{= kB} %t%= %?%F%{= Bk}%:%{= wk}%? %n " | |
hardstatus alwayslastline '%{= kG}[ %{.K}%1` %{g}][%= %{= kK}%?%-Lw%?%{W}%n*%f%t%?(%u)%?%{K}%?%+Lw%?%?%= %{g}][%{.K} %l | %2` | %C%a %{g}]' | |
startup_message off | |
vbell off | |
defutf8 on | |
bind c screen 1 | |
bind 0 select 10 | |
defscrollback 10000 | |
shell bash | |
escape ^Zz | |
autodetach on | |
screen 1 |
This file contains 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
#!/bin/bash | |
echo -e "${USER}@${HOSTNAME}" |
This file contains 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
#!/bin/bash | |
cat /proc/uptime | awk 'BEGIN { days = "days"; } {d = sprintf("%d", $1/(24*3600)); if (d == 1) { days = "day" }; print d,days }' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Read more:
http://www.jukie.net/bart/conf/screenrc
http://www.debian-administration.org/articles/560
http://jinome.stanford.edu/stat366/unix/.screenrc