News for hackers. Stuff that matters.
Re:Nice commandline directory bookmarker. (Saves you typing ... by bluishgreen on Friday October 02, 2009 @01:07PM (#857459)
I have these functions in my .bashrc

addpi() { echo "cd `pwd` $1" >> ~/.pi; echo }

pi() { `cat ~/.pi | grep $1`; }

Usage: when you are in a dir that you want to bookmark say addpi <name>

when you want to return to that dir from anywhere say pi <name>

Ofcourse you need some kind of resolution if you have 2 matches in the grep, but it works for me.

Re:Nice commandline directory bookmarker. (Saves you typing ... by akkartik on Friday October 02, 2009 @01:27PM (#857513)
I took the next step in disambiguation: http://akkartik.name/bash.html#cd