I am trying to change my ps1 command prompt to print out the contents of pwd and also the result of the du command. I have tried adding this to my PS1 variable in my .bashrc file
PS1='\[\033[01;32m\]\w\$(du -s `echo $PWD` 2>/dev/null | awk '{printf $1}')\[\033[00m\]\$ '
after running source ~/.baashrc I was expecting an output of something like:
/home/some_user/ XXXX (the number returned from du) $
but instead I recieve
})\[\033[00m\]\$ : command not found
any help is greatly appreciated.