mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-11-11 04:48:44 +03:00
d35c871e17
Previously this was done during `rake install`. Also default to `~/github/atom` as the default resource path when no `--resource-path` argument is specified. This argument will now be required when running in dev mode if the repository is not at the default location. Closes #300
25 lines
378 B
Bash
25 lines
378 B
Bash
#!/bin/sh
|
|
open -a Atom -n --args --executed-from="$(pwd)" --pid=$$ $@
|
|
|
|
# Used to exit process when atom is used as $EDITOR
|
|
on_die() {
|
|
exit 0
|
|
}
|
|
trap 'on_die' SIGQUIT SIGTERM
|
|
|
|
# Don't exit process if we were told to wait.
|
|
while [ "$#" -gt "0" ]; do
|
|
case $1 in
|
|
-W|--wait)
|
|
WAIT=1
|
|
;;
|
|
esac
|
|
shift
|
|
done
|
|
|
|
if [ $WAIT ]; then
|
|
while true; do
|
|
sleep 1
|
|
done
|
|
fi
|