summaryrefslogtreecommitdiffstats
path: root/zsh/oh-my-zsh/plugins/yii2
diff options
context:
space:
mode:
authorLibravatarLibravatar Biswakalyan Bhuyan <biswa@surgot.in> 2024-03-25 16:43:09 +0530
committerLibravatarLibravatar Biswakalyan Bhuyan <biswa@surgot.in> 2024-03-25 16:43:09 +0530
commita62114c91f2070c8c8453d117f3d81dc113e41ff (patch)
treef266e87af29a08c01f82bc32dd7d463d8ec4441a /zsh/oh-my-zsh/plugins/yii2
parentaf120ab348f2e1a5a39dec035ed9dcf84189a64e (diff)
downloaddotfiles-a62114c91f2070c8c8453d117f3d81dc113e41ff.tar.gz
dotfiles-a62114c91f2070c8c8453d117f3d81dc113e41ff.tar.bz2
dotfiles-a62114c91f2070c8c8453d117f3d81dc113e41ff.zip
dotfile update
Diffstat (limited to 'zsh/oh-my-zsh/plugins/yii2')
-rw-r--r--zsh/oh-my-zsh/plugins/yii2/README.md7
-rw-r--r--zsh/oh-my-zsh/plugins/yii2/yii2.plugin.zsh29
2 files changed, 0 insertions, 36 deletions
diff --git a/zsh/oh-my-zsh/plugins/yii2/README.md b/zsh/oh-my-zsh/plugins/yii2/README.md
deleted file mode 100644
index 345b66e..0000000
--- a/zsh/oh-my-zsh/plugins/yii2/README.md
+++ /dev/null
@@ -1,7 +0,0 @@
-# Yii2 autocomplete plugin
-
-* Adds autocomplete commands and subcommands for yii.
-
-## Requirements
-
-Autocomplete works from directory where your `yii` file contains.
diff --git a/zsh/oh-my-zsh/plugins/yii2/yii2.plugin.zsh b/zsh/oh-my-zsh/plugins/yii2/yii2.plugin.zsh
deleted file mode 100644
index 713f2ef..0000000
--- a/zsh/oh-my-zsh/plugins/yii2/yii2.plugin.zsh
+++ /dev/null
@@ -1,29 +0,0 @@
-# Yii2 command completion
-
-_yii2_format_command () {
- awk '/^- [a-z]+/ { sub(":", "", $2); print $2 }'
-}
-
-_yii2 () {
- if [ -f ./yii ]; then
- _arguments \
- '1: :->command'\
- '*: :->params'
-
- case $state in
- command)
-
- local -a commands
- local -a name
-
- if [[ $words[2] == *\/ ]]; then
- name=$words[2]
- fi
-
- commands=(${(f)"$(./yii help $name --color=0 | _yii2_format_command)"})
- compadd -Q -S '' -a -- commands
- esac
- fi
-}
-
-compdef _yii2 yii