Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: A conditional test to see whether a function is loaded?
- X-seq: zsh-users 11539
- From: fREW <frioux@xxxxxxxxx>
- To: "William Scott" <wgscott@xxxxxxxxxxxxxxxxxx>
- Subject: Re: A conditional test to see whether a function is loaded?
- Date: Sat, 9 Jun 2007 09:16:50 -0600
- Cc: zsh-users@xxxxxxxxxx
- Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=CXQSzVDuZCKlMwgJ+46ROYe2WJOVKuNfOrLZDGLvKBjdGSKFvfqb/APly8GZSQvwm1zC1RHPoUCA25KMZeV2U7+El+wdhdFPn3grQgBW8okl0gQgtlTh0qEarFnXYwhi3hQUDBKRGLHAHrs+4lxuCQYNnDOu3df0nZo+9jNwoUg=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=obQpLuzaT8hdpsCLtA/3kPA4Uhra4BIYMcANhKVlS3EFNphHaMcrtvMLqwEWbNWRfaTUhZiRtFGvYkObMOutRyPAx+ZLfHMonniZLg3xdg7K5TwJ25bSpf6bSXbhdVIStLssrDA4Bd/IdbOJLiqw/TCxkZjdK7vk7AdzC3SeFmw=
- In-reply-to: <46182.68.165.111.29.1181399341.squirrel@xxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <4B761D89-02BE-4F7F-87C6-37331C89786B@xxxxxxxxxxxxxxxxxx> <20070609124520.GP3842@xxxxxxxxxxxxxxx> <46182.68.165.111.29.1181399341.squirrel@xxxxxxxxxxxxxxxxx>
On 6/9/07, William Scott <wgscott@xxxxxxxxxxxxxxxxxx> wrote:
Thanks!
Frank Terbeck wrote:
> zsh% [[ -n ${functions[promptinit]} ]] && echo yay || echo nay
I have a similar question. Is there a shorter, more zsh-y way to do:
[[ -x `which aptitude` ]]
Obviously replace aptitude with any program. I tried [[ -x =aptitude
]] but that gives error messages if it doesn't exist.
--
-fREW
Messages sorted by:
Reverse Date,
Date,
Thread,
Author