added kirby CLI plugin

This commit is contained in:
M.C. Brouwer 2016-03-03 11:17:46 +01:00
parent bd6dbd1d9b
commit 657bd8744d
3 changed files with 59 additions and 0 deletions

2
plugins/kirby/README.md Normal file
View File

@ -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.

25
plugins/kirby/_kirby Normal file
View File

@ -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

View File

@ -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'