diff options
Diffstat (limited to 'edit')
-rwxr-xr-x | edit | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -0,0 +1,7 @@ +#!/bin/sh + +if [ $(id -u) -eq 0 ]; then + exec sudo -u neoraider emacsclient -nw /sudo::$(readlink -f $1) +else + exec emacsclient -nw $(readlink -f $1) +fi |