index
:
dotfiles
main
My personal dotfiles
about
summary
refs
log
tree
commit
diff
log msg
author
committer
range
path:
root
/
bin
/
e
diff options
context:
1
2
3
4
5
6
7
8
9
10
15
20
25
30
35
40
space:
include
ignore
mode:
unified
ssdiff
stat only
Diffstat
(limited to 'bin/e')
-rwxr-xr-x
bin/e
9
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