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