Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Autocompletion for oh-my-zsh #515

Merged
merged 3 commits into from May 1, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
15 changes: 15 additions & 0 deletions autocompletion/oh-my-zsh/n98-magerun.plugin.zsh
@@ -0,0 +1,15 @@
# Installation:
# Copy to ~/.oh-my-zsh/custom/plugins/n98-magerun/n98-magerun.plugin.zsh
# Edit plugins in your .zshrc e.g. "plugins=(git n98-magerun)"
# It will load the next time a shell session is started
# This plugin assumes that "n98-magerun.phar" is in your path

_n98_magerun_get_command_list () {
n98-magerun.phar --raw --no-ansi list | sed "s/\s.*//g"
}

_n98_magerun () {
compadd `_n98_magerun_get_command_list`
}

compdef _n98_magerun n98-magerun.phar