gem install ndee- Add
function ndee { `ruby -S ndee $1`; }to your.bashrc. This is necessary because the ruby child process cannot change the working directory of the parent shell. - Restart the shell.
You can now cd into any of your Apache configured domains using ndee:
> ndee mypage.com
> pwd
/var/www/mypage.com/public
> ndee blog.mypage.com
> pwd
/var/www/mypage.com/blog/some/folder/new/current/public/Ndee is how the Western Apache bands call themselves. Sounds related to cd, doesn't it?
Using glebm's fork of apache_config to handle Config file parsing.