zsh-comp: explain how to use for non-global install
authorMartin Geisler <mg@lazybytes.net>
Sun, 24 May 2009 23:53:28 +0200
changeset 8616 704833724ff6
parent 8615 94ca38e63576
child 8617 7af21dfae9d5
zsh-comp: explain how to use for non-global install
contrib/zsh_completion
--- a/contrib/zsh_completion	Sun May 24 22:37:20 2009 +0200
+++ b/contrib/zsh_completion	Sun May 24 23:53:28 2009 +0200
@@ -4,6 +4,15 @@
 # it into your zsh function path (/usr/share/zsh/site-functions for
 # instance)
 #
+# If you do not want to install it globally, you can copy it somewhere
+# else and add that directory to $fpath. This must be done before
+# compinit is called. If the file is copied to ~/.zsh.d, your ~/.zshrc
+# file could look like this:
+#
+# fpath=("$HOME/.zsh.d" $fpath)
+# autoload -U compinit
+# compinit
+#
 # Copyright (C) 2005-6 Steve Borho
 # Copyright (C) 2006-8 Brendan Cully <brendan@kublai.com>
 #