Is it possible to get bash to display the first letter of each directory in the working path

bashprompt

For example working in:

/home/stuart/src/project/com/example/package
/usr/lib/python2.6

would appear as:

~/s/p/c/e/package$ 
/u/l/python2.6$

Best Answer

Yes, it is possible and has been done here.

Related Question