##What is it ?
Many of us like to see pwd
in bash prompt. However if we travel too deep inside directory trees, the path becomes very lengthy and almost eats all the space. So its good to only show last part of the path. That what this script does.
Before:
After: