From 93494a1445475be67661b72add9d11e7de92f5fc Mon Sep 17 00:00:00 2001 From: Luke Childs Date: Fri, 1 Jul 2016 21:34:56 +0100 Subject: [PATCH] Rename to better npm completion --- README.md | 6 +++--- ...etion.plugin.zsh => zsh-better-npm-completion.plugin.zsh | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) rename zsh-npm-run-completion.plugin.zsh => zsh-better-npm-completion.plugin.zsh (92%) diff --git a/README.md b/README.md index 53b8558..56d9f71 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# zsh-npm-run-completion +# zsh-better-npm-completion > Better completion for `npm run` @@ -13,12 +13,12 @@ ### Antigen ```shell -antigen bundle lukechilds/zsh-npm-run-completion +antigen bundle lukechilds/zsh-better-npm-completion ``` ### Manual Installation -Clone this repo or just download `zsh-npm-run-completion.plugin.zsh` and source it in your `.zshrc`. +Clone this repo or just download `zsh-better-npm-completion.plugin.zsh` and source it in your `.zshrc`. ## License diff --git a/zsh-npm-run-completion.plugin.zsh b/zsh-better-npm-completion.plugin.zsh similarity index 92% rename from zsh-npm-run-completion.plugin.zsh rename to zsh-better-npm-completion.plugin.zsh index 1ac39fd..e9d24d6 100644 --- a/zsh-npm-run-completion.plugin.zsh +++ b/zsh-better-npm-completion.plugin.zsh @@ -1,4 +1,4 @@ -_npm_run_completion() { +_zsh_better_npm_completion() { # If we're on the run command if [ "${words[2]}" = "run" ]; then @@ -32,4 +32,4 @@ _npm_run_completion() { IFS=$si } -compdef _npm_run_completion npm +compdef _zsh_better_npm_completion npm