I have usually a few dirs that i go back and forth frequently when coding, and I simply set them to my env. I add the following line to ~/.bashrc
export lib='/path/to/my/lib'
And 'cd $lib' will take me there. Very simple, and caters for most of my cd needs. Don't over-complicate things