Last active
November 18, 2017 11:25
-
-
Save vijayabharathib/a5e9c314c7309b1dcb74af51dba69aa9 to your computer and use it in GitHub Desktop.
One-click workstation
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
[Desktop Entry] | |
Name=Get To Work | |
Comment=Start coding in an instant. | |
GenericName=Development Environment | |
Exec=/home/username/snippets/get-to-work.sh | |
Icon=/usr/share/icons/logo.png | |
Type=Application | |
Terminal=true | |
StartupNotify=true | |
Categories=Utility; |
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 | |
export WORK_DIR="/home/username/Projects/pineboat/development" | |
gnome-terminal \ | |
--tab --working-directory=$WORK_DIR \ | |
-e 'bash -c "export BASH_POST_RC=\"npm start\"; exec bash"' \ | |
--tab --working-directory=$WORK_DIR \ | |
-e 'bash -c "export BASH_POST_RC=\"atom $WORK_DIR\"; exec bash"' \ | |
--tab --working-directory=$WORK_DIR \ | |
-e 'bash -c "export BASH_POST_RC=\"npm run watch\"; exec bash"' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment