summaryrefslogtreecommitdiffstats
path: root/e
blob: c214982239caacdc3f734d3d3271961c1a04c54d (plain)
1
2
3
4
5
6
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