diff --git a/startPMovase.sh b/startPMovase.sh new file mode 100755 index 0000000..4545ebd --- /dev/null +++ b/startPMovase.sh @@ -0,0 +1,24 @@ +cd /run/media/bruno/Multimedia/MyDocuments/Development/projetomovase +if [[ $(screen -ls | grep 'pmovase') ]]; then + echo "Já está rodando, saindo..." + exit +fi +echo "Iniciando Vagrant..." +screen -dmS pmovase +screen -S pmovase -p 0 -X stuff $'npm run vagrant; npm run watch\n' +screen -S pmovase -X screen +screen -S pmovase -X screen +sleep 2s +screen -S pmovase -p 2 -X title $'GIT' + +sleep 2m +screen -S pmovase -p 0 -X title $'NPM WATCH\n' +screen -S pmovase -p 1 -X stuff $'npm run ssh\n' +sleep 5s +screen -S pmovase -p 1 -X title $'Artisan' + +screen -S pmovase -X select 2 +screen -S pmovase -p 1 -X echo $'Done!\n' +screen -S pmovase -p 2 -X echo $'Done!\n' + +echo "Screen running. Attach to it with 'screen -r pmovase'" diff --git a/tmuxStartPMOvase.sh b/tmuxStartPMOvase.sh index 6e1e0c4..a811626 100755 --- a/tmuxStartPMOvase.sh +++ b/tmuxStartPMOvase.sh @@ -29,6 +29,6 @@ done tmux send -t pmovase:0.1 $'npm run test-watch\n' tmux send -t pmovase:0.2 $'^u' tmux send -t pmovase:0.2 $'phpunit-watcher watch\n' -tmux send -t pmovase:0.3 $'ssh homestead -t \"cd code;clear; figlet Vagrant;bash --login\"\n' -tmux send -t pmovase:0.4 $'clear;figlet PMova-se\n' +tmux send -t pmovase:0.3 $'ssh homestead -t \"cd code;alias clear='clear; figlet Vagrant';clear;bash --login\"\n' +tmux send -t pmovase:0.4 $'alias clear='clear;figlet PMova-se';clear\n'