blob: a1f3a67a316bb3eb9fd42fa5d51ed0868629d3b5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#!/bin/sh
# TODO: conditional on emacs being running, or do a split running zile
# (if that exists: otherwise nano): then this works great on remote
# machines too and can incorporate into .zshrc, maybe
if pgrep -u $USER emacs; then
command="emacsclient -nw"
elif which zile; then
command="zile"
else
command="nano"
fi
progname=`basename $0`
if [ "$progname" = "es" ]; then
tmux split-window "$command $@"
else
$command $@
fi
|