diff options
author | Tanaka Akira <akr@users.sourceforge.net> | 1999-11-02 12:51:20 +0000 |
---|---|---|
committer | Tanaka Akira <akr@users.sourceforge.net> | 1999-11-02 12:51:20 +0000 |
commit | 455110d26ad0dd9555538f7b78f856c192144f60 (patch) | |
tree | eb1be0b861e702045c60aa933b69283cb1dbd337 | |
parent | 82e6f2438e05405ba6b10144834f13546f54fce4 (diff) | |
download | zsh-455110d26ad0dd9555538f7b78f856c192144f60.tar.gz zsh-455110d26ad0dd9555538f7b78f856c192144f60.tar.xz zsh-455110d26ad0dd9555538f7b78f856c192144f60.zip |
Initial revision
-rw-r--r-- | Completion/Base/_value | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/Completion/Base/_value b/Completion/Base/_value new file mode 100644 index 000000000..e29c90e79 --- /dev/null +++ b/Completion/Base/_value @@ -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 +} |