Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: More zsh tricks required please



* zzapper <david@xxxxxxxxxx> typed:
> I'm an intermediate zsh user, and can't do the whacko stuff yet. 
> But haven't learnt any tricks recently, last one was
> 
> > vim =some_script (from anywhere)
> 
> where the = means search paths for script location.
> 
> So please a link to a handy website, or your tips/tricks.
> 
> On the above BTW is it possible to do a
> 
> > cd =some_script   (doesn't work)
> 
> to jump to the directory??

| cd =some_script(:h)

I use a function for this:
| function dcd { cd =$1(:h) }
-- 
    \\___//   Mynd you, m00se bites
     (o o)     Kan be pretti nasti
--ooO-(_)-Ooo--------------------------------------------------
Christian 'strcat' Schneider <strcat@xxxxxxx>



Messages sorted by: Reverse Date, Date, Thread, Author