summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xstart13
1 files changed, 5 insertions, 8 deletions
diff --git a/start b/start
index 929beae..05ff5c6 100755
--- a/start
+++ b/start
@@ -1,9 +1,6 @@
#!/bin/sh
-npm run dev &
-npm_pid="$(echo $!)"
-php -S 0.0.0.0:8000 &
-php_pid="$(echo $!)"
-
-echo "Click anything to stop"
-read t
-kill $php_pid $npm_pid
+open_in_terminal() {
+ st -e sh -c "cd $(pwd); $1"
+}
+open_in_terminal 'npm run dev' &
+open_in_terminal 'php -S 0.0.0.0:8000' &