korny / ndee

reads Apache confs and cds into the DocumentRoot of the given domain

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Installation

  1. gem install ndee
  2. 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.
  3. Restart the shell.

Usage

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/

Name

Ndee is how the Western Apache bands call themselves. Sounds related to cd, doesn't it?

Acknowledgements

Using glebm's fork of apache_config to handle Config file parsing.

About

reads Apache confs and cds into the DocumentRoot of the given domain

License:MIT License


Languages

Language:Ruby 100.0%