Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Loading completion function from custom fpath
- X-seq: zsh-users 17903
- From: Felipe Sateler <fsateler@xxxxxxxxx>
- To: Frank Terbeck <ft@xxxxxxxxxxxxxxxxxxx>
- Subject: Re: Loading completion function from custom fpath
- Date: Wed, 31 Jul 2013 09:59:02 -0400
- Cc: zsh-users@xxxxxxx
- 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==
- In-reply-to: <87zjt3fc0x.fsf@ft.bewatermyfriend.org>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <CAAfdZj9bH2w8oUZYZdN10EKO1AVuLUG2m=VFSs13KrfuLwjbng@mail.gmail.com> <87zjt3fc0x.fsf@ft.bewatermyfriend.org>
On Wed, Jul 31, 2013 at 3:01 AM, Frank Terbeck <ft@xxxxxxxxxxxxxxxxxxx> 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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author