From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14517 invoked by alias); 31 Jul 2013 13:59:54 -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: 17903 Received: (qmail 23237 invoked from network); 31 Jul 2013 13:59:49 -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=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 Received-SPF: pass (ns1.primenet.com.au: SPF record at _netblocks.google.com designates 209.85.214.48 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=J+206Vf31qcgjeJsc7Pg46xfvJApDqAqgIuQQbCWkjU=; b=JFCjgdprvkAv5Yv/KniWQUesQqZYOZ+v1d75cpTI1Ucvu6SGQQ45QzmRnYeOQS05iw oEydNW9PnucLT7FLbLqa4fqCJJaJT9QlW/2boKNneZJtCXAzdk5AlWDJ5B5q/Qo+rvxo jI7qYS1BGgHZrYd2KnQvi0x+L0eukNuEZZcuoZznKOavS/8nPaYCqxP1DuNp5H2p7I6a FY57ipLJaDqxuwkhS/wGmKNAukBpnITjt9ifqTu8yqnTWN7aA0uqMKvisKseWYghYqgK 903oMi6vmR+LA9E0WDn1yD6WoGiPElJH0EYD3ei2BZM6j58v+lfqRwc24kAbf70IukgN OGgg== X-Received: by 10.204.226.209 with SMTP id ix17mr9923972bkb.11.1375279182209; Wed, 31 Jul 2013 06:59:42 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <87zjt3fc0x.fsf@ft.bewatermyfriend.org> References: <87zjt3fc0x.fsf@ft.bewatermyfriend.org> From: Felipe Sateler Date: Wed, 31 Jul 2013 09:59:02 -0400 Message-ID: Subject: Re: Loading completion function from custom fpath To: Frank Terbeck Cc: zsh-users@zsh.org Content-Type: text/plain; charset=UTF-8 On Wed, Jul 31, 2013 at 3:01 AM, Frank Terbeck wrote: > Hi Felipe, Hi Frank, > > 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. Now I feel really stupid. I thought I tried the unquoted path before (indeed I ended up with the quoted path trying different versions). Indeed unquoting it works! Thanks for your help! -- Saludos, Felipe Sateler