~/.screenrc
~/meminfo
set bash prompt
defscrollback 10000
termcapinfo rxvt ti@:te@
termcapinfo rxvt 'hs:ts=\E]2;:fs=\007:ds=\E]2;screen\007'
hardstatus alwayslastline
#hardstatus string '%{= kG}[ %{G}%H %{g}][%=%{=kw}%?%-Lw%?%{r}(%{W}%n*%f%t%?(%u)%?%{r})%{w}%?%+Lw%?%?%=%{g}][%{W}%Y-%m-%d %{W}%c %{g}]'
#hardstatus string '%{= kG}[ %{G}%H %{g}][%= %{= kw}%?%-Lw%?%{r}(%{W}%n*%f%t%?(%u)%?%{r})%{w}%?%+Lw%?%?%= %{g}][%{B} %d/%m %{W}%c %{g}]'
#backtick 2 1200 1200 pwd
#hardstatus string "%c:%s %D %m-%d-%Y | %l | %2` | %n %t %W"
#hardstatus string '%{gk}[ %{G}%H %{g}][%= %{wk}%?%-Lw%?%{=b kR}(%{W}%n*%f %t%?(%u)%?%{=b kR})%{= kw}%?%+Lw%?%?%= %{g}][%{Y}%l%{g}]%{=b C}[ %m/%d %c ]%{W}'
hardstatus on
backtick 1 5 5 $HOME/meminfo #you have to use $HOME
caption always "%{=bu kb} %= %?%-Lw%?%{kc}[:%n %t:]%{kb}%?%+Lw%? %= "
hardstatus alwayslastline "%{+b bw}[%H :: $USER]%{=b kw} %=[ %1` ]%=%{=b bw}[%m.%d.%y %0C%a]"#!/bin/shRAM=`cat /proc/meminfo | grep "MemFree" | awk -F" " '{print $2}'` SWAP=`cat /proc/meminfo | grep "SwapFree" | awk -F" " '{print $2}'` echo -n "${RAM}kb/ram ${SWAP}kb/swap"
- $Id$
- Description: Generates memory stats for screen to display
- Copyright (C) 2003,2004,2005,2006 Charles Mauch <cmauch@gmail.com>
- Verbatim copying, distribution, and display of this program is permitted in
- any medium, provided this notice is preserved. Alternatively, you may create
- derivative works of any sort for any purpose, provided your versions contain
- no attribution to me, and that you assert your own authorship (and not mine)
- in every practical medium.
export PS1='\u@\h:.../\W>'
Page
Place
Blog
Space
Comments
No comments for this document