Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp602383ybl; Fri, 16 Aug 2019 00:45:14 -0700 (PDT) X-Google-Smtp-Source: APXvYqyq2RK5ya7aHsfpw0PguVkRHl8GjI0iZSIuBrJxe9lT2cSXDCJSRjL/iQiXL5FAYi8jzE7U X-Received: by 2002:a62:4ed1:: with SMTP id c200mr9424251pfb.218.1565941514228; Fri, 16 Aug 2019 00:45:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565941514; cv=none; d=google.com; s=arc-20160816; b=P1NfApPXdehwGA94+7GnDBz8L0BJvDXyMgGHWbNiSTUEsw6TNRfa18zw5WgMKyimaY aTn/fe5kDD3y1Cn6GOTCEtJyHl79daf6SByJTc6DDyh0N+ML8eECWHJH0fiTE6EDEvMx NIaN6hGS8MXB6aFK2MP5xcUGxMowGQQnLh9+jRy5+gUtDV0Sfe6Q8IVBSePmIYafO1bV GTh85Z2wgoiEmST2UKqC6YqFt+H1pkMYjvcwEkNv+/NpFPEqYe6RpvHZ+RhUhEnLiOX5 /Du1RajIABxjQTQL+qk0PW8oNTTeOOuN5FctpM8FSYrssPyUZe2E+gQNnU7qWmDSd0K8 wPiw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=5QhWx3rIJqkf0piRjovbrgZSk6D6ETEODTOjpjLq3V0=; b=dRkrPsN8yq2XiZeepO6eCd0rONE55LcAFxes2oriaNGRiYdV4i8hv/23cG8Z3Zv0DP vD6NPLfvBd0tBFJKY1nWPJ6/hM9lm22PuZ/FxYQegkJc6xyTzGKuH18tm2wWcIS+2QSd othqiet8gxDbzSI0ZZHF4ZidexOf06hRUwj/OgcpIoRlznligXDUKWB2CLgsk4Qsa9wx OIehDGSdLnjfIg73xfh0yprQJpeKmmZDEpKV90BjNo4L6WxpVVhzRRjenmPO56gx8Opm kIbHFqVU4PBozE0ILHHGL5cm20OokFhgZ2xN3Q5q2VKs9dDpjhR3E/gTwYUfyoYWvISg ftNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=jOPM0uGL; spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t143si3309076pgb.542.2019.08.16.00.44.51; Fri, 16 Aug 2019 00:45:14 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=jOPM0uGL; spf=pass (google.com: best guess record for domain of linux-bluetooth-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725945AbfHPHoq (ORCPT + 99 others); Fri, 16 Aug 2019 03:44:46 -0400 Received: from mail-pf1-f195.google.com ([209.85.210.195]:34197 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725829AbfHPHop (ORCPT ); Fri, 16 Aug 2019 03:44:45 -0400 Received: by mail-pf1-f195.google.com with SMTP id b24so2739338pfp.1 for ; Fri, 16 Aug 2019 00:44:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=5QhWx3rIJqkf0piRjovbrgZSk6D6ETEODTOjpjLq3V0=; b=jOPM0uGLo1bPgqR8lZfvkaJGzImy5kKH/hTfoZHJ7uczpjVvyd5uSZyYITCO1/1fzt yuDir9w8/mvzdWq4Tswk3PNLQS4jNY+d9LuGvlpF+L7ztqt9BZUv5eCj+RxOW3dH+qvW 9MbPUyRE6dWDz8XwqBOD3G7uLkO9KBhSmRlnecke2Vm6bsgpP7BVG7yLHDu1a+cSPOXT Fq/GmyF8KgXKus5H6u3R/ZlVISrR+l7SBpHhAcVOB6wqitTuBSL5T8ccgO1B4ZibwEqM PbuBJGNldmQnGksONRr/bhcIpuotGnTPgUZxURVGuDsas9VcDfCHvH8y1Bemf/AlqI9e mI2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=5QhWx3rIJqkf0piRjovbrgZSk6D6ETEODTOjpjLq3V0=; b=rbhPLa/BP6xQy8OUpNMoeg2UBK7g37AZJrAIaIMVFTNGy4U+s2pV0oG3BKQDz493pX slact+QjYAtcm7+iTcYkHQYDDE9M70Od41ESO0CVEk/eIg/05jReaXYC1mjPL6UN258a 6qyzwOv+zEQo0l2tp8lFxBdvSDU0PV6dMfrLqG//KL11E812gvBLwSQofa6NEm7OrnQq YDqZ3+cgWNTiNCv9cy81ekZmU1m6aCi4nr4SZ0+ritSpoEUMm/ey9j+75r5xLk1yBW8m rxSu72hZH0y3pnOJrEvTbkLJYZAMndI2dC4QTjflLWeLzathdeJ2K9jQJ2oSqFWf481Q Ab3A== X-Gm-Message-State: APjAAAWMd3+9sBG/HCT96GTPI2QJKkSOEDLnnMNkqdBE2hzeeUJcmMTk CuCSxfGHTeuLRB0Qu4LQdTefMmo= X-Received: by 2002:a62:5207:: with SMTP id g7mr942451pfb.152.1565941484863; Fri, 16 Aug 2019 00:44:44 -0700 (PDT) Received: from rxps.home ([2600:8800:1e00:242:71a0:9ddd:9d48:afb]) by smtp.gmail.com with ESMTPSA id v184sm4186679pgd.34.2019.08.16.00.44.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Aug 2019 00:44:44 -0700 (PDT) From: Ronan Pigott X-Google-Original-From: Ronan Pigott To: linux-bluetooth@vger.kernel.org Cc: Ronan Pigott Subject: [PATCH BlueZ 0/3] Add zsh completions for bluetoothctl Date: Fri, 16 Aug 2019 00:43:30 -0700 Message-Id: <20190816074333.24673-1-rpigott@berkeley.edu> X-Mailer: git-send-email 2.22.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org From: Ronan Pigott bluetoothctl has a nice interactive interface, but some of its functions can be accessed quicker non-interactively, straight from the command line. I made these zsh completions to facilitate that, and I thought to submit them upstream, if you like, so now I've made this patch. If you are a zsh user, try them out! I also added the 'help' option in order to help the shell completions get their value from the same source as the interactive shell completions. Ronan Pigott (3): client/main: add help option for available args completion: add bluetoothctl zsh completions build: install zsh completions Makefile.tools | 5 ++ client/main.c | 8 +++ completion/zsh/_bluetoothctl | 131 +++++++++++++++++++++++++++++++++++ configure.ac | 12 ++++ 4 files changed, 156 insertions(+) create mode 100644 completion/zsh/_bluetoothctl -- 2.22.1