[Discuss] efficiently changing directories?
noel at natnix.com
noel at natnix.com
Mon Aug 13 11:27:16 PDT 2007
Well, er. After writing that script, bmy friend pointed out the CDPATH
variable in bash. From the bash(1) man page:
CDPATH The search path for the cd command. This is a
colon-separated
list of directories in which the shell looks for
destination
directories specified by the cd command. A sample
value is
".:~:/usr".
So it's already built into bash. Nothing like reinventing the wheel!
~Noel
On Sun, Aug 12, 2007 at 10:49:26PM -0700, Daniel M German wrote:
>
> thanks a lot Noel,
>
> it is great utility! A simple and easy way to update the CDPATH!
>
>
>
> noel> Hi Daniel,
> noel> My favourite kind of question! How about a script like this?
>
> noel> ~Noel
>
>
>
> --
> --
> Daniel M. German
> http://turingmachine.org/
> http://silvernegative.com/
> dmg (at) uvic (dot) ca
> replace (at) with @ and (dot) with .
More information about the Discuss
mailing list