[Pkg-zsh-devel] Bug#620452: no place for packaged zsh libs

Marc Chantreux marc.chantreux at linkfluence.net
Sat Apr 2 12:05:50 UTC 2011


On Sat, Apr 02, 2011 at 09:23:45AM +0200, Frank Terbeck wrote:
> marc chantreux wrote:
> > I would like to make a zshlib-foo.deb file to install a zsh written
> > library in a path handled by the default $fpath.
> >
> > /usr/local/share/zsh/site-functions is for the local admin stuff.
> > /usr/share/zsh/functions/* are for stuff distributed with zsh. 
> >
> > i would really appreciate to see a /usr/lib/zsh/functions to put my stuff in.
> 
> This isn't as hard as I thought on IRC.
> 
> I think we could just
> 
> fpath+=( /foo/bar/baz )

hello, 

that's what i did:

a) libzsh-foo depends on libzsh
b) libzsh add those lines in /etc/zshenv

# libzsh.deb BEGIN (DO NOT EDIT THOSE LINE)
fpath+=( /usr/lib/zsh/functions )
require () { autoload $1; "$@" }
# libzsh.deb END (DO NOT EDIT THOSE LINE)

but i really don't want to see some important scripts to be broken just
because the sysop fucked up while editing /etc. So i would like 

fpath+=( /usr/lib/zsh/functions ) 

to be in the binary file :)

> We just need to decide what "/foo/bar/baz" is acceptable in terms of
> debian policy etc. So, any comments or suggestions? ...my knowledgeable
> debian-certified pkg-zsh colleagues? :-)

It would be great to handle some shared efforts for better zsh
configurations like zen or oh-my-zsh. i have no idea about the way to do
it as i don't use them :)

https://github.com/robbyrussell/oh-my-zsh
http://zshwiki.org/home/zen

regards
marc





More information about the Pkg-zsh-devel mailing list