From 657bd8744d787c8c1125cfec485681fc6cb43a8b Mon Sep 17 00:00:00 2001 From: "M.C. Brouwer" Date: Thu, 3 Mar 2016 11:17:46 +0100 Subject: [PATCH] added kirby CLI plugin --- plugins/kirby/README.md | 2 ++ plugins/kirby/_kirby | 25 +++++++++++++++++++++++++ plugins/kirby/kirby.plugin.zsh | 32 ++++++++++++++++++++++++++++++++ 3 files changed, 59 insertions(+) create mode 100644 plugins/kirby/README.md create mode 100644 plugins/kirby/_kirby create mode 100644 plugins/kirby/kirby.plugin.zsh diff --git a/plugins/kirby/README.md b/plugins/kirby/README.md new file mode 100644 index 00000000..5333e6b0 --- /dev/null +++ b/plugins/kirby/README.md @@ -0,0 +1,2 @@ +#Kirby CLI oh-my-zsh plugin +Adds autocompletion and aliasses for the Kirby CLI. A tool for the amazingly easy to use Getkirby CMS. \ No newline at end of file diff --git a/plugins/kirby/_kirby b/plugins/kirby/_kirby new file mode 100644 index 00000000..8169c033 --- /dev/null +++ b/plugins/kirby/_kirby @@ -0,0 +1,25 @@ +#compdef kirby + +local -a options +options=('install' +'install\ --kit\ plainkit' +'install\ --kit\ langkit' +'install\ --kit\ starterkit' +'install\:core' +'install\:panel' +'install\:index.php' +'install\:htaccess' +'update' +'plugin\:install' +'plugin\:update' +'make\:blueprint' +'make\:controller' +'make\:snippet' +'make\:template' +'make\:user' +'make\:tag' +'make\:plugin' +'clear\:cache' +'clear\:thumbs' +'version') +_describe 'values' options \ No newline at end of file diff --git a/plugins/kirby/kirby.plugin.zsh b/plugins/kirby/kirby.plugin.zsh new file mode 100644 index 00000000..857c1ef6 --- /dev/null +++ b/plugins/kirby/kirby.plugin.zsh @@ -0,0 +1,32 @@ +# installation +alias ki='kirby install' +alias kiplain='kirby install --kit plainkit' +alias kistart='kirby install --kit starterkit' +alias kilang='kirby install --kit langkit' +alias kic='kirby install:core' +alias kip='kirby install:panel' +alias kii='kirby install:index.php' +alias kih='kirby install:htaccess' +alias kbstr='kirby install:core && kirby install:panel' + +# plugins +alias kpin'plugin:install' +alias kpup'plugin:update' + +# version & updates +alias kup='kirby update' +alias kv='kirby version' + +# make stuff +alias kmblue='kirby make:blueprint' +alias kmctrl='kirby make:controller' +alias kmsnip='kirby make:snippet' +alias kmtpl='kirby make:template' +alias kmusr='kirby make:user' +alias kmtag='kirby make:tag' +alias kmplug='kirby make:plugin' + +# cache clearing +alias kcc='kirby clear:cache' +alias kct='kirby clear:thumbs' +alias kca='kirby clear:cache && kirby clear:thumbs' \ No newline at end of file