about summary refs log tree commit diff
path: root/Completion/Zsh/Context/_math
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2013-03-17 20:53:44 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2013-03-17 20:53:44 +0000
commit146374a2af8cbc7674374b44ef6c963ee008e8a2 (patch)
tree23f38f984cdcd9c6b60c95c212c98dae670b77a2 /Completion/Zsh/Context/_math
parentab8fe84a8c179f5990c4fd7cd7e2cfa82ed03cc3 (diff)
downloadzsh-146374a2af8cbc7674374b44ef6c963ee008e8a2.tar.gz
zsh-146374a2af8cbc7674374b44ef6c963ee008e8a2.tar.xz
zsh-146374a2af8cbc7674374b44ef6c963ee008e8a2.zip
improved math context completion: functions
Diffstat (limited to 'Completion/Zsh/Context/_math')
-rw-r--r--Completion/Zsh/Context/_math4
1 files changed, 3 insertions, 1 deletions
diff --git a/Completion/Zsh/Context/_math b/Completion/Zsh/Context/_math
index 278189ebe..f82f1c0fb 100644
--- a/Completion/Zsh/Context/_math
+++ b/Completion/Zsh/Context/_math
@@ -9,4 +9,6 @@ if [[ "$SUFFIX" = *[^a-zA-Z0-9_]* ]]; then
   SUFFIX="${SUFFIX%%[^a-zA-Z0-9_]*}"
 fi
 
-_parameters -g '(integer|float)*' || _parameters
+_alternative 'math-parameters:math parameter: _math_params' \
+    'user-math-functions:user math function: _user_math_func' \
+    'module-math-functions:math function from zsh/mathfunc: _module_math_func'