Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [PATCH] new completion for otool command (macOS)
- X-seq: zsh-workers 42222
- From: dana <dana@xxxxxxx>
- To: Jun T <takimoto-j@xxxxxxxxxxxxxxxxx>
- Subject: Re: [PATCH] new completion for otool command (macOS)
- Date: Thu, 4 Jan 2018 11:27:06 -0600
- Cc: zsh-workers@xxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dana-is.20150623.gappssmtp.com; s=20150623; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=3W+ckwVOAJ/k6WSqlbHA7AMWgcTDNdgAvdOtHj7LQPE=; b=XI8YzpVzq85PDrRaTF3zuDcLvxs+tgCzf7rCVxLo3KKXGic6EZqchp5kbZ7cNfHEmn Hrh6vtBfGGhavFmOFOTOWdHEtm4ZZO2PO/BVnAr84tXAyppOPrx+xdbL8YPQe7dODB0/ oyVvX1NeBddmAjb17spBzbSX8dWRCL5Hnyplhg5nZn6KJQV9ARMqjDAmCYpYbfknwp5D aCIT0VveKkjvztL8zn3oVdchjLvmKb+yGbs2CLkuqAoG2qI2FCuM5YHtluPYsUfm55PQ mScOMsXQZ7/qMzC8Emcoqs9UmIm0/6Dk7oHP19lIzuDOVY5nNg3dAbcQ5WTRkcmGudsY 8uJQ==
- In-reply-to: <A37CD241-FB6D-4BAE-9728-313F7BC46827@kba.biglobe.ne.jp>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <B6A3E1D5-BBFC-46BD-A87A-81B9FED28E96@kba.biglobe.ne.jp> <6948BF91-0914-48BE-B4AE-602066408522@dana.is> <A37CD241-FB6D-4BAE-9728-313F7BC46827@kba.biglobe.ne.jp>
On 3 Jan 2018, at 21:31, Jun T <takimoto-j@xxxxxxxxxxxxxxxxx> wrote:
>If there is a possibility that .dylib does not have an execution permission,
>then please add it to _object_files.
I don't have much experience with the other extensions you mentioned (except
.bundle is a directory i thought). But i did look at the .dylib files on my
machine, and it seems pretty well split on whether they'll be executable. Most
of the ones Apple ship in /usr/lib are, but over half of the ones i've got from
Homebrew are not. So i suppose it's worth adding it.
dana
diff --git a/Completion/Unix/Type/_object_files b/Completion/Unix/Type/_object_files
index 70b5b6688..595265116 100644
--- a/Completion/Unix/Type/_object_files
+++ b/Completion/Unix/Type/_object_files
@@ -5,7 +5,7 @@ local expl
_description files expl 'object file'
__object_file() {
- [[ -x $REPLY || $REPLY = *.(a|o|elf) || $REPLY = *.so(.<->)# ||
+ [[ -x $REPLY || $REPLY = *.(a|o|elf|dylib) || $REPLY = *.so(.<->)# ||
$REPLY = (core*|*.core) ]]
}
Messages sorted by:
Reverse Date,
Date,
Thread,
Author