Hack 42. Use bash shell function inside PS1 variable $ vi .bash_profile ps aux | grep httpd | grep -v grep | wc -lexport PS1='\u@\h [`httpdcount`]> '