Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Loading completion function from custom fpath
- X-seq: zsh-users 17900
- From: Frank Terbeck <ft@xxxxxxxxxxxxxxxxxxx>
- To: Felipe Sateler <fsateler@xxxxxxxxx>
- Subject: Re: Loading completion function from custom fpath
- Date: Wed, 31 Jul 2013 09:01:50 +0200
- Cc: zsh-users@xxxxxxx
- In-reply-to: <CAAfdZj9bH2w8oUZYZdN10EKO1AVuLUG2m=VFSs13KrfuLwjbng@mail.gmail.com> (Felipe Sateler's message of "Tue, 30 Jul 2013 19:18:45 -0400")
- 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>
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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author