mirror of
git://git.code.sf.net/p/zsh/code
synced 2024-11-19 13:33:52 +01:00
Initial revision
This commit is contained in:
parent
82e6f2438e
commit
455110d26a
31
Completion/Base/_value
Normal file
31
Completion/Base/_value
Normal file
@ -0,0 +1,31 @@
|
||||
#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
|
||||
}
|
Loading…
Reference in New Issue
Block a user