zsh-users
 help / color / mirror / code / Atom feed
From: Felipe Sateler <fsateler@gmail.com>
To: Frank Terbeck <ft@bewatermyfriend.org>
Cc: zsh-users@zsh.org
Subject: Re: Loading completion function from custom fpath
Date: Wed, 31 Jul 2013 09:59:02 -0400	[thread overview]
Message-ID: <CAAfdZj9Z31-c3Uc79SCLBGsLR0eyADWC3ro=mBsxW6_MBwkUZQ@mail.gmail.com> (raw)
In-Reply-To: <87zjt3fc0x.fsf@ft.bewatermyfriend.org>

On Wed, Jul 31, 2013 at 3:01 AM, Frank Terbeck <ft@bewatermyfriend.org> 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


      reply	other threads:[~2013-07-31 13:59 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
2013-07-31 13:59   ` Felipe Sateler [this message]

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='CAAfdZj9Z31-c3Uc79SCLBGsLR0eyADWC3ro=mBsxW6_MBwkUZQ@mail.gmail.com' \
    --to=fsateler@gmail.com \
    --cc=ft@bewatermyfriend.org \
    --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).