about summary refs log tree commit diff
path: root/Functions/Completion/_trap
diff options
context:
space:
mode:
Diffstat (limited to 'Functions/Completion/_trap')
-rw-r--r--Functions/Completion/_trap7
1 files changed, 7 insertions, 0 deletions
diff --git a/Functions/Completion/_trap b/Functions/Completion/_trap
new file mode 100644
index 000000000..59e81c589
--- /dev/null
+++ b/Functions/Completion/_trap
@@ -0,0 +1,7 @@
+#defcomp trap
+
+if [[ -position 1 ]]; then
+  complist -c
+else
+  complist -k signals
+fi