Skip to content

Commit

Permalink
Merge pull request #515 from joh-klein/zsh-autocompletion
Browse files Browse the repository at this point in the history
Autocompletion for oh-my-zsh
  • Loading branch information
cmuench committed May 1, 2015
2 parents 459017f + b449ff6 commit fa09eb1
Showing 1 changed file with 15 additions and 0 deletions.
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

0 comments on commit fa09eb1

Please sign in to comment.