aboutsummaryrefslogtreecommitdiff
path: root/bin/e
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fischer@muhq.space>2026-10-06 17:31:55 +0200
committerFlorian Fischer <florian.fischer@muhq.space>2026-10-06 17:32:32 +0200
commitf0724869c591d3e316b143b108d9f6a6c4a17989 (patch)
tree5aa2c86671c5308ca83f954a90863396657eaef2 /bin/e
parent53076b1979ce2cea5dbbfdf8105e18b992fe4ce6 (diff)
downloaddotfiles-f0724869c591d3e316b143b108d9f6a6c4a17989.tar.gz
dotfiles-f0724869c591d3e316b143b108d9f6a6c4a17989.zip
add simple helper script to edit files and compose mails
Diffstat (limited to 'bin/e')
-rwxr-xr-xbin/e9
1 files changed, 9 insertions, 0 deletions
diff --git a/bin/e b/bin/e
new file mode 100755
index 0000000..3d66e5d
--- /dev/null
+++ b/bin/e
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+[ -n "$1" ] || exit 1
+
+if [ -n "$TERM" ]; then
+ "$EDITOR" "$1"
+else
+ "$TERMINAL" -e "$EDITOR $1"
+fi