From 5089cd661bd4762d43971da34e7683e91a8b8767 Mon Sep 17 00:00:00 2001 From: Robin Schneider Date: Sat, 31 Jan 2015 15:09:24 +0100 Subject: [PATCH] Made it a oh-my-zsh plugin and documented how to use it. --- README.md | 17 +++++++++++++++++ zsh-completions.plugin.zsh | 1 + 2 files changed, 18 insertions(+) create mode 100644 zsh-completions.plugin.zsh diff --git a/README.md b/README.md index 39da7db..741fbc3 100644 --- a/README.md +++ b/README.md @@ -42,6 +42,23 @@ Usage rm -f ~/.zcompdump; compinit +#### oh-my-zsh + +If you use [oh-my-zsh][] then just clone the repository inside your oh-my-zsh repo: + +```Shell +git clone https://github.com/zsh-users/zsh-completions ~/.oh-my-zsh/custom/plugins/zsh-completions +``` + +and enable it in your `.zshrc`: + +```zsh +plugins+=(zsh-completions) +autoload -U compinit && compinit +``` + +[oh-my-zsh]: http://github.com/robbyrussell/oh-my-zsh + Contributing ------------ diff --git a/zsh-completions.plugin.zsh b/zsh-completions.plugin.zsh new file mode 100644 index 0000000..f8be8e7 --- /dev/null +++ b/zsh-completions.plugin.zsh @@ -0,0 +1 @@ +fpath+="`dirname $0`/src"