From: Frank Terbeck <ft@bewatermyfriend.org>
To: Felipe Sateler <fsateler@gmail.com>
Cc: zsh-users@zsh.org
Subject: Re: Loading completion function from custom fpath
Date: Wed, 31 Jul 2013 09:01:50 +0200 [thread overview]
Message-ID: <87zjt3fc0x.fsf@ft.bewatermyfriend.org> (raw)
In-Reply-To: <CAAfdZj9bH2w8oUZYZdN10EKO1AVuLUG2m=VFSs13KrfuLwjbng@mail.gmail.com> (Felipe Sateler's message of "Tue, 30 Jul 2013 19:18:45 -0400")
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
next prev parent reply other threads:[~2013-07-31 7:01 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-30 23:18 Felipe Sateler
2013-07-31 7:01 ` Frank Terbeck [this message]
2013-07-31 13:59 ` Felipe Sateler
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87zjt3fc0x.fsf@ft.bewatermyfriend.org \
--to=ft@bewatermyfriend.org \
--cc=fsateler@gmail.com \
--cc=zsh-users@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).