1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-01 21:51:40 +02:00

cleanup after function move

This commit is contained in:
Sven Wischnowsky 2001-04-02 14:36:36 +00:00
parent 610a6eb841
commit 956ef612e2
5 changed files with 29 additions and 1 deletions

View file

@ -1,5 +1,8 @@
2001-04-02 Sven Wischnowsky <wischnow@zsh.org>
* Config/installfns.sh, Src/zsh.mdd: more cleanup after
function moving
* unposted, kind of: moving functions and scripts around, renaming
them, accidentally deleted them and re-installing them, etc.

View file

@ -0,0 +1,17 @@
#autoload
local dict dictresult dictwords j expl
[[ -z $words[CURRENT] ]] && return 1
dictresults=(${${(f)${"$(dict -m $words[CURRENT])":gs/
/ /}}:#[0-9]*matches found})
for j in ${dictresults}
do
dict=${j%%:*}
dictwords=(${(z)j#*:})
_wanted $dict expl "words from $dict" \
compadd -M 'm:{a-zA-Z}={A-Za-z} r:|=*' -a "$@" - dictwords
done

View file

@ -15,6 +15,10 @@ for file in $allfuncs; do
if test -f $sdir_top/$file; then
if test x$FUNCTIONS_SUBDIRS != x -a x$FUNCTIONS_SUBDIRS != xno; then
case "$file" in
Completion/comp*)
subdir="`echo $file | sed -e 's%/[^/]*/[^/]*$%%'`"
instdir="$fndir/Completion"
;;
Completion/*)
subdir="`echo $file | sed -e 's%/[^/]*/[^/]*$%%'`"
instdir="$fndir/$subdir"

View file

@ -0,0 +1,4 @@
DISTFILES_SRC='
.distfiles
cdmatch cdmatch2 multicomp
'

View file

@ -49,7 +49,7 @@ zshpaths.h: Makemod $(CONFIG_INCS)
$(dir_top)/config.modules | sed -e '/^#/d' -e '/ link=no/d' \
-e 's/^.* functions=//'`"; \
fpath_tmp=`for f in $$fpath_tmp; do \
echo $$f | sed -e 's%^Functions/%%' -e 's%/[^/]*$$%%'; \
echo $$f | sed -e 's%^Functions/%%' -e 's%/[^/]*$$%%' -e 's%/\*%%'; \
done | sort | uniq`; \
fpath_tmp=`echo $$fpath_tmp | sed 's/ /\", \"/g'`; \
echo "#define FPATH_SUBDIRS { \"$$fpath_tmp\" }" \