From 63e8da0836c33532836f551c9636e7e96e6ff2ef Mon Sep 17 00:00:00 2001 From: chpeer <19874293+chpeer@users.noreply.github.com> Date: Mon, 22 Jan 2018 17:50:36 +0000 Subject: [PATCH] add plugin to support please --- plugins/please/README.md | 17 +++++++++++++++++ plugins/please/please.plugin.zsh | 12 ++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 plugins/please/README.md create mode 100644 plugins/please/please.plugin.zsh diff --git a/plugins/please/README.md b/plugins/please/README.md new file mode 100644 index 00000000..6e0b8b1d --- /dev/null +++ b/plugins/please/README.md @@ -0,0 +1,17 @@ +# please autocomplete plugin + +[Please](https://please.build) is a cross-language build system with an emphasis on high performance, extensibility and reproduceability. It supports a number of popular languages and can automate nearly any aspect of your build process. + +This plugin adds autocomplete and major aliases for `plz`, the command line tool for please. + +### Autocomplete +* autocomplete `plz` commands +* autocomplete build targets + +### Alias +* `plz test` -> `pt` +* `plz build` -> `pb` +* `plz watch` -> `pw` + +### Maintainer +[@thought-machine](https://github.com/thought-machine) diff --git a/plugins/please/please.plugin.zsh b/plugins/please/please.plugin.zsh new file mode 100644 index 00000000..c6050a35 --- /dev/null +++ b/plugins/please/please.plugin.zsh @@ -0,0 +1,12 @@ +# Auto completion for plz, the command line tool for the please build system +# For more details go to http://please.build +# +# Author: https://github.com/thought-machine + +if [ $commands[plz] ]; then + source <(plz --completion_script) +fi + +alias pb='plz build' +alias pt='plz test' +alias pw='plz watch'