[Closes: issue706]
* zshrc: Set options a lot earlier and include noshwordsplit explicitly.
* zshrc: Make functions insusceptible to user option settings.
+ * zsh: move completion.d and functions.d to usr/share
[ Michael Prokop ]
* zshrc: add deborphan, pal and hnb to compdef _gnu_generic. Thanks for
the suggestion to Carsten Hey.
- -- Frank Terbeck <ft@grml.org> Wed, 08 Jul 2009 13:26:50 +0200
+ -- Frank Terbeck <ft@grml.org> Wed, 08 Jul 2009 13:33:56 +0200
grml-etc-core (0.3.72) unstable; urgency=low
# Add here commands to install the package into debian/grml-etc-core.
cp -a etc/ debian/grml-etc-core/
+ cp -a usr_share_grml/ debian/grml-etc-core/usr/share/grml
# Build architecture-dependent files here.
binary-arch: build install
# do Fink setup on darwin
isdarwin && xsource /sw/bin/init.sh
-# completion functions go to /etc/zsh/completion.d
-# function files may be put into /etc/zsh/functions.d, from where they
-# will be automatically autoloaded.
-if [[ -n "$BROKEN_COMPLETION_DIR" ]] ; then
- print 'Warning: not setting completion directories because broken files have been found.' >&2
-else
- [[ -d /etc/zsh/completion.d ]] && fpath=( $fpath /etc/zsh/completion.d )
- if [[ -d /etc/zsh/functions.d ]] ; then
- fdir='/etc/zsh/functions.d'
- fpath=( ${fdir} ${fdir}/**/*(/N) ${fpath} )
+# load our function and completion directories
+for fdir in /usr/share/grml/zsh/completion /usr/share/grml/functions; do
+ fpath=( ${fdir} ${fdir}/**/*(/N) ${fpath} )
+ if [[ ${fpath} == '/usr/share/grml/zsh/functions' ]] ; then
for func in ${fdir}/**/[^_]*[^~](N.) ; do
zrcautoload ${func:t}
done
- unset fdir
fi
-fi
+done
+unset fdir func
# support colors in less
export LESS_TERMCAP_mb=$'\E[01;31m'