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