Created
February 25, 2022 13:02
-
-
Save tanmay27vats/ae9e2f77fd3abdb91d60f895b706449e to your computer and use it in GitHub Desktop.
Open projects on the terminal in multiple tabs at once.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#################################### | |
# | |
# Open all required porjects. | |
# | |
#################################### | |
gnome-terminal --tab --command="bash -c 'cd /path/to/your/project/angular-project-1; npm start; $SHELL'" \ | |
--tab --command="bash -c 'cd /path/to/your/project/angular-project-2; ng serve -p 4201; $SHELL'" \ | |
--tab --command="bash -c 'cd /path/to/your/project/angular-project-3; ng serve -p 4202; $SHELL'" | |
gnome-terminal --tab --command="bash -c 'cd /path/to/your/project/rails-project-1; rails s; $SHELL'" \ | |
--tab --command="bash -c 'cd /path/to/your/project/rails-project-1; $SHELL'" \ | |
--tab --command="bash -c 'cd /path/to/your/project/rails-project-2; rails s; $SHELL'" \ | |
--tab --command="bash -c 'cd /path/to/your/project/rails-project-2; $SHELL'" \ | |
--tab --command="bash -c 'cd /path/to/your/project/rails-project-3; rails s; $SHELL'" \ | |
--tab --command="bash -c 'cd /path/to/your/project/rails-project-3; $SHELL'" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment