Prompt home made script

Hi

I made a script called mydf which puts out the amount of storage space left on the file system;
df | head -2 | tail -1 | tr -s " " | cut -d" " -f4
But I would like to run it with every new prompt, so you get something like; user@5518748~$ in your prompt (5518748 being the mydf output). Its already in the ~/bin folder so can be executed anywhere without ./

I couldn't find anything on the web on this so I wonder if it's possible, and how to do this.
Can someone help me out with this?

Regards

Fri May 13 15:39:31 MYT 2011 $ PS1='${LOGNAME}@$(date) $ '
cgi@Fri May 13 15:39:44 MYT 2011 $
cgi@Fri May 13 15:39:45 MYT 2011 $
cgi@Fri May 13 15:39:45 MYT 2011 $

I think same should work for you using mydf instead of date.

Yep, got it working.

Thanks.