From 4e591803530483c2fa10bccb7e3c6bea42d1e31d Mon Sep 17 00:00:00 2001 From: Frankie McGough Date: Sat, 17 Sep 2016 12:41:13 +0100 Subject: [PATCH] Shell completion for zsh --- shell-integration/cbt-completions.zsh | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 shell-integration/cbt-completions.zsh diff --git a/shell-integration/cbt-completions.zsh b/shell-integration/cbt-completions.zsh new file mode 100755 index 00000000..d11307d7 --- /dev/null +++ b/shell-integration/cbt-completions.zsh @@ -0,0 +1,7 @@ +#! /usr/bin/env zsh + +_cbt() { + reply=( "${(ps:\n:)$(cbt taskNames)}" ) +} + +compctl -K _cbt cbt