From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15538 invoked by alias); 31 Jul 2013 07:01:47 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 17900 Received: (qmail 12690 invoked from network); 31 Jul 2013 07:01:41 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, SPF_HELO_PASS autolearn=ham version=3.3.2 Received-SPF: none (ns1.primenet.com.au: domain at bewatermyfriend.org does not designate permitted sender hosts) From: Frank Terbeck To: Felipe Sateler Cc: zsh-users@zsh.org Subject: Re: Loading completion function from custom fpath In-Reply-To: (Felipe Sateler's message of "Tue, 30 Jul 2013 19:18:45 -0400") References: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) Date: Wed, 31 Jul 2013 09:01:50 +0200 Message-ID: <87zjt3fc0x.fsf@ft.bewatermyfriend.org> MIME-Version: 1.0 Content-Type: text/plain X-Df-Sender: [pbs]NDMwNDQ0 Hi Felipe, Felipe Sateler wrote: > fpath=('~/.zsh/functions' $fpath) This doesn't work. If you put the "~" into quotes (single or double, it doesn't matter) zsh won't perform tilde-expansion. And thus, you'll end up with a string in $fpath that starts with '~/' literally, like you pasted: [...] > ~/.zsh/functions And I bet that's not a valid directory on you system. :) Either leave the quotes off or use double quotes along with $HOME. The following should be equivalent: fpath=(~/.zsh/functions $fpath) fpath=("$HOME/.zsh/functions" $fpath) Either of them should work. Regards, Frank