I do a lot of work in Magento, and so do a lot of the people I work with, and it gets annoying to have to type:
To only find you're still a few directories from your root 'httpdocs' folder, so I'm trying to make a script that follows this pseudo-code:
while lowest level directory != httpdocs cd ../ end while;
Seems pretty simple, I'm assuming I would have to do some form of grep on checking if the last part of the current working directory is httpdocs, if not just keep going up a level until it's true.
I've been looking at learning bash for this, though it seems like there has to be something out there already that's similar, and the syntax puzzles me to no end.