mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-10 12:40:58 +02:00
cleanup after function move
This commit is contained in:
parent
610a6eb841
commit
956ef612e2
5 changed files with 29 additions and 1 deletions
|
@ -1,5 +1,8 @@
|
||||||
2001-04-02 Sven Wischnowsky <wischnow@zsh.org>
|
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
|
* unposted, kind of: moving functions and scripts around, renaming
|
||||||
them, accidentally deleted them and re-installing them, etc.
|
them, accidentally deleted them and re-installing them, etc.
|
||||||
|
|
||||||
|
|
17
Completion/Unix/Type/_dict_words
Normal file
17
Completion/Unix/Type/_dict_words
Normal 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
|
|
@ -15,6 +15,10 @@ for file in $allfuncs; do
|
||||||
if test -f $sdir_top/$file; then
|
if test -f $sdir_top/$file; then
|
||||||
if test x$FUNCTIONS_SUBDIRS != x -a x$FUNCTIONS_SUBDIRS != xno; then
|
if test x$FUNCTIONS_SUBDIRS != x -a x$FUNCTIONS_SUBDIRS != xno; then
|
||||||
case "$file" in
|
case "$file" in
|
||||||
|
Completion/comp*)
|
||||||
|
subdir="`echo $file | sed -e 's%/[^/]*/[^/]*$%%'`"
|
||||||
|
instdir="$fndir/Completion"
|
||||||
|
;;
|
||||||
Completion/*)
|
Completion/*)
|
||||||
subdir="`echo $file | sed -e 's%/[^/]*/[^/]*$%%'`"
|
subdir="`echo $file | sed -e 's%/[^/]*/[^/]*$%%'`"
|
||||||
instdir="$fndir/$subdir"
|
instdir="$fndir/$subdir"
|
||||||
|
|
4
Functions/Compctl/.distfiles
Normal file
4
Functions/Compctl/.distfiles
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
DISTFILES_SRC='
|
||||||
|
.distfiles
|
||||||
|
cdmatch cdmatch2 multicomp
|
||||||
|
'
|
|
@ -49,7 +49,7 @@ zshpaths.h: Makemod $(CONFIG_INCS)
|
||||||
$(dir_top)/config.modules | sed -e '/^#/d' -e '/ link=no/d' \
|
$(dir_top)/config.modules | sed -e '/^#/d' -e '/ link=no/d' \
|
||||||
-e 's/^.* functions=//'`"; \
|
-e 's/^.* functions=//'`"; \
|
||||||
fpath_tmp=`for f in $$fpath_tmp; do \
|
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`; \
|
done | sort | uniq`; \
|
||||||
fpath_tmp=`echo $$fpath_tmp | sed 's/ /\", \"/g'`; \
|
fpath_tmp=`echo $$fpath_tmp | sed 's/ /\", \"/g'`; \
|
||||||
echo "#define FPATH_SUBDIRS { \"$$fpath_tmp\" }" \
|
echo "#define FPATH_SUBDIRS { \"$$fpath_tmp\" }" \
|
||||||
|
|
Loading…
Reference in a new issue