-
Notifications
You must be signed in to change notification settings - Fork 0
dcd Command Help
dcd allows you to store a list of directory aliases in a file that can easily be switched to from the command line. This functionality can be replicated with aliases, but dcd adds a lot of additional functionality like:
- Adding aliases without having to source your profile repeatedly.
- Autocompletion of aliases.
dcd <alias>
Changes to the directory alias which matches the parameter listed for in the file ~/.dcd/dcd.conf
dcd -e Edit the list of directory aliases via an editor
dcd -l List the directory alias file.
dcd -q Figure out what aliases are associated with the current directory.
dcd -d Remove any aliases pointing to the current directory from the dcd config file.
dcd -a Add the current directory to the dcd.conf file using the provided alias.
If ~/.dcd/dcd.conf contained the following lines:
ora=/opt/oracle/product/10.2.0/db_1
jboss=/opt/dev/jboss/jboss-4.0.4
Then typing dcd ora would change to /opt/oracle/product/10.2.0/db_1