From: Sven Guckes <guckes@math.fu-berlin.de>
To: zsh-users@sunsite.auc.dk
Subject: Re: listing all executables matching 'foo'
Date: Wed, 25 Aug 1999 15:46:32 +0200 [thread overview]
Message-ID: <19990825154631.C2803@ritz.math.fu-berlin.de> (raw)
In-Reply-To: <19990823110321.A1724@cj952583-b.alex1.va.home.com>
* On Mon, Aug 23, 1999 at 04:07:16PM +0200, Dominik Vogt wrote:
> # ls =filename
> and hit TAB :-))
* Sweth Chandramouli (sweth@gwu.edu) [990823 15:03]:
> yes, but that returns totally different information, especially in zsh,
> [...]
> (of course, then you have issues figuring out just what
> `alias which=/bin/which ; alias which=$(whence -a which | head -1)'
> does, but that's what makes playing with your shell fun.))
Apropos:
_listall () {
if [[ $# = 0 ]]
then
echo "Usage: $0 program"
echo "Example: $0 zsh"
echo "Lists all occurrences of program in the current PATH."
else
for program in `which -a $1`
do
ls -lL $program
done
fi
}
Comments?
Sven
--
Sven Guckes guckes@math.fu-berlin.de using zsh-3.0.5 [961218]
ZSH HomePage: http://www.zsh.org | Latest version: zsh-3.1.5 [981030]
ZSH Pages: http://www.math.fu-berlin.de/~guckes/zsh/ Tips and tricks
ZSH Tips: http://www.math.fu-berlin.de/~guckes/zsh/tips.html
next prev parent reply other threads:[~1999-08-25 13:50 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-08-23 13:22 cd directory completion? Dominik Vogt
1999-08-23 13:35 ` Andre Pang
1999-08-23 14:07 ` Dominik Vogt
1999-08-23 15:03 ` Sweth Chandramouli
1999-08-25 13:46 ` Sven Guckes [this message]
1999-08-25 14:22 ` listing all executables matching 'foo' Hubert Canon
1999-08-25 14:53 ` Sven Guckes
1999-08-25 14:59 ` Paul Lew
1999-08-26 3:59 ` James Cribb
1999-08-26 12:27 ` Sven Guckes
1999-08-26 16:24 ` Sweth Chandramouli
1999-08-25 4:32 ` cd directory completion? Bek Oberin
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=19990825154631.C2803@ritz.math.fu-berlin.de \
--to=guckes@math.fu-berlin.de \
--cc=zsh-users@sunsite.auc.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).