101112 Bill Longman wrote: > On 11/12/2010 09:57 AM, Philip Webb wrote: >> but is there a way to set up a command to goto a parallel dir, >> eg if you're in ~/tmp goto ~/hold ( 2 of my commonly-used dirs) ? >> The elegant way is 'function cd2() { cd .. ; cd $"$1" ; }'. > cd ${PWD/old/new} > works when you're in /some/old/tree/directory > and you want to go to /some/new/tree/directory It works, but wouldn't be as useful for what I want to do, as you'ld have to enter both 'old' & 'new' after the function command. ie instead of 'cd2 hold', you'ld have to write 'cd2 tmp hold': it doesn't work if you try 'cd ${PWD/./hold}', which leaves you in 'tmp'.
For generally jumping round the dir tree, I recommend Cdargs. -- ========================,,============================================ SUPPORT ___________//___, Philip Webb ELECTRIC /] [] [] [] [] []| Cities Centre, University of Toronto TRANSIT `-O----------O---' purslowatchassdotutorontodotca