If your $HOME matches the beginning of your $PWD, it deletes the shortest part that matches and returns the rest. For example, if you are in your $HOME/scripts directory, only scripts will show as your prompt. 
