Skip to content

Instantly share code, notes, and snippets.

@alexindigo
Created June 9, 2011 07:58
Show Gist options
  • Save alexindigo/1016282 to your computer and use it in GitHub Desktop.
Save alexindigo/1016282 to your computer and use it in GitHub Desktop.
my .screenrc
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
#!/bin/bash
echo -e "${USER}@${HOSTNAME}"
#!/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