summaryrefslogtreecommitdiffstats
path: root/e
diff options
context:
space:
mode:
Diffstat (limited to 'e')
-rwxr-xr-xe7
1 files changed, 7 insertions, 0 deletions
diff --git a/e b/e
new file mode 100755
index 0000000..c214982
--- /dev/null
+++ b/e
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+if [ $(id -u) -eq 0 ]; then
+ exec sudo -u neoraider emacsclient -n /sudo::$(readlink -f $1)
+else
+ exec emacsclient -n $(readlink -f $1)
+fi