[Olug-list] Get SCO

Terje Trane terje_trane at hotmail.com
Tue, 16 Mar 2004 09:39:18 +0100


Eller enda bedre, for de som virkelig vil følge med:


Kommenter ut alle echo setningene untatt SCOX

	#echo -en $bold"Company" $yellow$COMPANY$normal
	#echo -en $bold "Date" '\E[33;40m'${ARRAY[2]}$normal
	#echo -e $bold "Time" $yellow${ARRAY[3]}$normal
	echo -en $bold"SCOX" $yellow${ARRAY[1]}$normal
	#echo -en $bold "Change"$COLOR ${ARRAY[4]}$normal
	#echo -e $bold "Volume"$yellow ${ARRAY[8]}$normal
	#echo -en $bold"Open" $yellow${ARRAY[5]}$normal
	#echo -e $bold "High" $yellow${ARRAY[6]}$normal

og lagre som getscox.sh. (Det er også fjernet en space der for å skrive SCOX
rett etter klammen).

Sett PS1 i profile-fila di, (f.eks. .bash_profile) til

	PS1="[\$(getscox.sh)][\u@\h:\w]\$ "

Da får du opp kursen til SCO i prompten din. Slik:

	[SCOX 8.99][trane@tux:~]$

Nice.
Ikke slit ut Enter-tasten din da  :)