From f056c29fd5c331c88fbd432db01474c63fb0edad Mon Sep 17 00:00:00 2001 From: Maksymilian Jopek Date: Wed, 12 Apr 2023 10:36:33 +0200 Subject: Change start script --- start | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'start') 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' & -- cgit v1.3.1