summaryrefslogtreecommitdiff
path: root/plugins/please
diff options
context:
space:
mode:
authorchpeer <19874293+chpeer@users.noreply.github.com>2018-01-22 17:50:36 +0000
committerMarc Cornellà <marc.cornella@live.com>2019-05-08 16:53:50 +0200
commitebc700be9b2fa7ae770a644093a5c46a8e323726 (patch)
tree4d7dc453bd65eca722b3aff8c12b2c4867278639 /plugins/please
parent7b75163543a3f18652cd8978c1b111e8a196a3f8 (diff)
downloadzsh-ebc700be9b2fa7ae770a644093a5c46a8e323726.tar.gz
zsh-ebc700be9b2fa7ae770a644093a5c46a8e323726.tar.bz2
zsh-ebc700be9b2fa7ae770a644093a5c46a8e323726.zip
Add plugin for Please (#6568)
Diffstat (limited to 'plugins/please')
-rw-r--r--plugins/please/README.md26
-rw-r--r--plugins/please/please.plugin.zsh7
2 files changed, 33 insertions, 0 deletions
diff --git a/plugins/please/README.md b/plugins/please/README.md
new file mode 100644
index 000000000..89bfbf105
--- /dev/null
+++ b/plugins/please/README.md
@@ -0,0 +1,26 @@
+# please 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.
+
+To use it, add `please` to the plugins array in your zshrc file:
+
+```zsh
+plugins=(... please)
+```
+
+## Aliases
+
+| Alias | Command |
+|-------|-------------|
+| `pb` | `plz build` |
+| `pt` | `plz test` |
+| `pw` | `plz watch` |
+
+## 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 000000000..0f58307ab
--- /dev/null
+++ b/plugins/please/please.plugin.zsh
@@ -0,0 +1,7 @@
+if (( $+commands[plz] )); then
+ source <(plz --completion_script)
+fi
+
+alias pb='plz build'
+alias pt='plz test'
+alias pw='plz watch'