Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [wgiokas@WST420: Re: Correct installation path for completion files]
- X-seq: zsh-workers 31587
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: William Giokas <1007380@xxxxxxxxx>
- Subject: Re: [wgiokas@WST420: Re: Correct installation path for completion files]
- Date: Fri, 26 Jul 2013 17:10:14 -0700
- Cc: zsh-workers@xxxxxxx
- In-reply-to: <20130726184101.GE6421@WST420>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <20130726180739.GD6421@WST420> <87d2q5goz9.fsf@ft.bewatermyfriend.org> <20130726184101.GE6421@WST420>
On Jul 26, 1:41pm, William Giokas wrote:
} Subject: Re: [wgiokas@WST420: Re: Correct installation path for completion
}
}
} On Fri, Jul 26, 2013 at 08:23:06PM +0200, Frank Terbeck wrote:
} > William Giokas wrote:
} >
} > It's hard to make it distribution-agnostic. The best way I can think of
} > is to use the output of this as the destination directory:
} >
} > zsh -fc 'print ${fpath[1]}'
}
} If vendor-functions is something special that distributions use, then
} they can specify that when they package this stuff. site-functions seems
} to be the default for zsh, so it seems that it should be the default for
} packages that install zsh completion.
Even if you choose site-functions you still need to know what path the
distribution has used as the prefix ... you've already pointed out that
RedHat-derived dists have /usr/share/zsh/site-functions/ whereas Debian
uses /usr/local/share/zsh/site-functions/.
Frank's suggestion of running zsh to grab the first directory in $fpath
is as good a way to avoid the guesswork as any. If zsh won't run because
it's not installed, you're no worse off (and you can decide to skip the
function installation entirely).
Messages sorted by:
Reverse Date,
Date,
Thread,
Author