Is it possible to have the name of the current working directory in the prompt in shell ?
Im working on OSX and CentOS in multiple projects under /srv/... and a mistake for wrong directory is quickly made.
I would like to have
[current_path] in my prompt somehow , perhaps coloured Is this possible?
For example like /srv/myproject it would give prompt [root@server [myproject]# This should stay the same even in /srv/myproject/app/etc