12 lines
229 B
Bash
Executable file
12 lines
229 B
Bash
Executable file
#!/bin/sh
|
|
|
|
runem=$(pgrep -c emacs)
|
|
|
|
if [ $runem -gt 0 ]; then
|
|
echo "emacs is running!"
|
|
else
|
|
echo "emacs isn't running! Starting it..."
|
|
emacs --daemon &
|
|
echo "emacs started."
|
|
fi
|