1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-01-17 10:20:55 +01:00
zsh/Completion/Base/_value
1999-11-02 14:07:19 +00:00

33 lines
505 B
Text

#compdef -value-
_value () {
#_view_completion_parameters
if (( $+functions[_value:$compstate[parameter]] )); then
"_value:$compstate[parameter]" "$@"
else
_default
fi
}
_value:CPPFLAGS () {
compset -q
if compset -P '-I'; then
_files -/ "$@"
else
_default "$@"
fi
}
_value:LDFLAGS () {
compset -q
if compset -P '-L'; then
_files -/ "$@"
elif compset -P '-R'; then
compset -P '*:'
_files -/ -S/ -r ' :' "$@"
else
_default "$@"
fi
}
_value "$@"