Changing directories quickly

The cdpath shell variable contains a list of directories that the shell searches when you use cd. For example, if you are in your $HOME directory, you can type:

    cd Time
and the shell will take you to ${HOME}/Taligent/Time. The shell looks in the current directory first, and if it doesn't find Time there, it searches the directories in cdpath, which is what happens in the example.

This little trick saves a massive amount of typing when you are navigating within the Taligent source tree. Here is an example of settings to add to your .cshrc file:

      set cdpath=(   ~ \
              ${HOME} \
              ${HOME}/Taligent \
              ${HOME}/tools \
              ${HOME}/Taligent/Toolbox \
              ${HOME}/Taligent/Toolbox/InternationalUtilities \
              ${HOME}/Taligent/Toolbox/Document2 \
              ${HOME}/Taligent/Toolbox/Runtime \
              ${HOME}/Taligent/Albert/Main \
              ${HOME}/Taligent/Instrumentation/TestSystem \
              ${HOME}/Taligent/Time \
              /home/local \
      )

[Contents] [Previous] [Next]
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.

Generated with WebMaker