Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [BUG] _dmidecode and _adb completion
- X-seq: zsh-workers 40857
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Ko Stoffelen <k.stoffelen@xxxxxxxx>, zsh-workers@xxxxxxx
- Subject: Re: [BUG] _dmidecode and _adb completion
- Date: Thu, 16 Mar 2017 13:48:33 -0700
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:in-reply-to:comments:references:to:subject :mime-version; bh=n/h2tmVF8t0yBHr8H6ZwVdS7jQyImbZlMFxmmCoTAWw=; b=ghsJZu+VxFdEaAk8AyoEedgvugraEbvRzwbtr13szIBkCfkzEoWcaSs3gX24R3l98J KowWO5t6ce4xQjcVNwQODMKipKZKZSp5fVce+9Ut0rwurOmeTTcfg8UVLISyIiNasAQc V+Vh96PE6YfcK1CLVQTySdrCq2Nr9ZjIvy8eR51IxeeYB9GamhCPy2luWi0JyEZy/cih QGLuMBiKQigALuhCuVeIYKMo5wJ+UFXhDsU5GK2nd8mID3Db7SGV05+nuX9Rw2cjOQJt mdxqkB6Lh5HjCGzoWHLMBOk6xc9IsikRPk730n42E4zjIOEZ1/lJcyz6RoD233g2Uwef dHgA==
- In-reply-to: <20170316104328.GA4496@fujitsu.shahaf.local2>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <44a56374-23e4-671d-6d45-6c0e0104a2e6@cs.ru.nl> <20170316104328.GA4496@fujitsu.shahaf.local2>
On Mar 16, 10:43am, Daniel Shahaf wrote:
} Subject: Re: [BUG] _dmidecode and _adb completion
}
} Ko Stoffelen wrote on Thu, Mar 16, 2017 at 10:21:29 +0100:
} > Second, I noticed that by simply typing "adb " and pressing tab, adb is
} > already executed and the daemon starts running if it did not before.
}
} I agree but I don't know how to fix this.
Completion/Unix/Command/_adb does this:
adb ${=ADB_DEVICE_SPECIFICATION} shell exit 2>/dev/null || {
# early bail-out until a single valid device/emulator is specified and up-and-running
_message -r "No (started) device specified, completions do not yet work"
...
So as presently written you can't complete adb commands/options until
you have a running daemon against which to validate the device.
I don't have adb installed so I don't know what happens if you skip this
step (edit _adb to stick a ":" command in front of that line so it will
always succeed, for example). If it's possible to sensibly proceed in
the absence of the daemon, then we could make the above test conditional
on a zstyle.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author