zsh-users
 help / color / mirror / code / Atom feed
From: Christian Schneider <strcat@gmx.net>
To: zsh-users@sunsite.dk
Subject: Re: More zsh tricks required please
Date: Sat, 19 Jun 2004 15:06:54 +0200	[thread overview]
Message-ID: <20040619130654.GA9123@painless.my-fqdn.de> (raw)
In-Reply-To: <vlc8d0toqggtc9gvlicp20ugllqlh0f7qa@4ax.com>

* zzapper <david@tvis.co.uk> 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@gmx.net>


  reply	other threads:[~2004-06-19 13:30 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-06-19 12:43 zzapper
2004-06-19 13:06 ` Christian Schneider [this message]
2004-06-20 12:19 ` Julius Plenz
2004-06-21  0:38 ` Drew Perttula
2007-04-16 14:40   ` cd to a file Andy Spiegl
2007-04-16 16:00     ` Frank Terbeck
2007-04-18  1:08       ` Andy Spiegl
2007-04-21 15:12       ` Atom Smasher
2007-04-22 18:18         ` Frank Terbeck
2007-04-23  8:45           ` Atom Smasher

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20040619130654.GA9123@painless.my-fqdn.de \
    --to=strcat@gmx.net \
    --cc=zsh-users@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).