aboutsummaryrefslogtreecommitdiff
path: root/bin/mailto
diff options
context:
space:
mode:
Diffstat (limited to 'bin/mailto')
-rwxr-xr-xbin/mailto9
1 files changed, 9 insertions, 0 deletions
diff --git a/bin/mailto b/bin/mailto
new file mode 100755
index 0000000..9380ee9
--- /dev/null
+++ b/bin/mailto
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+MAIL=aerc
+
+if pgrep "$MAIL" > /dev/null; then
+ "$MAIL" "$@"
+else
+ "$TERMINAL" -e "$MAIL" "$@"
+fi