1
0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-11-19 21:44:11 +01:00
zsh/Completion/Base/_value

32 lines
492 B
Plaintext
Raw Normal View History

1999-11-02 13:51:20 +01:00
#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
}