diff options
author | Tuowen Zhao <ztuowen@gmail.com> | 2018-02-08 11:10:56 -0700 |
---|---|---|
committer | Tuowen Zhao <ztuowen@gmail.com> | 2018-02-08 11:10:56 -0700 |
commit | b7b623d6de696b81d213ec666d072851561d5c06 (patch) | |
tree | 996eeb851a9be04c351c4067ed6608c17c8164e8 /plugins/eecms | |
parent | b388fd7fdaccf2875cb5ef58c100dd7634b74bc3 (diff) | |
parent | 37c2d0ddd751e15d0c87a51e2d9f9849093571dc (diff) | |
download | zsh-b7b623d6de696b81d213ec666d072851561d5c06.tar.gz zsh-b7b623d6de696b81d213ec666d072851561d5c06.tar.bz2 zsh-b7b623d6de696b81d213ec666d072851561d5c06.zip |
Merge branch 'master' of https://github.com/robbyrussell/oh-my-zsh
Diffstat (limited to 'plugins/eecms')
-rw-r--r-- | plugins/eecms/eecms.plugin.zsh | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/plugins/eecms/eecms.plugin.zsh b/plugins/eecms/eecms.plugin.zsh new file mode 100644 index 000000000..ee10fbb7e --- /dev/null +++ b/plugins/eecms/eecms.plugin.zsh @@ -0,0 +1,20 @@ +# ExpressionEngine CMS basic command completion + +_eecms_console () { + echo "php $(find . -maxdepth 3 -mindepth 1 -name 'eecms' -type f | head -n 1)" +} + +_eecms_get_command_list () { + `_eecms_console` | sed "/Available commands/,/^/d" | sed "s/[[:space:]].*//g" +} + +_eecms () { + compadd `_eecms_get_command_list` +} + +compdef _eecms '`_eecms_console`' +compdef _eecms 'system/ee/eecms' +compdef _eecms eecms + +#Alias +alias eecms='`_eecms_console`' |