1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-03 22:32:12 +02:00

29335: update valgrind --tool= completion hack.

This commit is contained in:
Mikael Magnusson 2011-05-24 01:43:22 +00:00
parent 4c3efc94cc
commit eb7c534a53
2 changed files with 10 additions and 3 deletions

View file

@ -1,4 +1,7 @@
2011-05-23 Mikael Magnusson <mikachu@gmail.com>
2011-05-24 Mikael Magnusson <mikachu@gmail.com>
* 29335: Completion/Linux/Command/_valgrind: Update the hack
for --tool= completion.
* 29338: Completion/Base/Core/_main_complete: Correct pattern
checking for true value in insert-tab style.
@ -14794,5 +14797,5 @@
*****************************************************
* This is used by the shell to define $ZSH_PATCHLEVEL
* $Revision: 1.5322 $
* $Revision: 1.5323 $
*****************************************************

View file

@ -118,7 +118,11 @@ if [[ -n "$state" ]]; then
# Basically uses debug output to find out the directory where the tools are
# present and lists all executables in that directory.
# Hope the program provides a neater interface some day!
tools=(${${${(M)${(f)"$(_call_program tools valgrind --tool=something -d 2> /dev/null)"}:#*launcher launching *something}##*launcher launching }%%something}*(*:t))
() {
setopt localoptions histsubstpattern
tools=( ${${${(M)${(f)"$(_call_program tools valgrind --tool=something -d 2>&1)"}:#*launcher launching *something*}##*launcher launching }%%something*}*~*.*(*:t:s/-*//) )
typeset -U tools
}
_wanted tools exl 'valgrind tool' compadd $tools && return
fi