Created
December 12, 2017 02:50
-
-
Save daison12006013/c63b7b0c8a21ed498c6c01f5990b01f7 to your computer and use it in GitHub Desktop.
Using platformio-idea-terminal, auto opening your vagrant and ssh to your default project folder
This file contains hidden or 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 | |
# | |
# On your project: | |
# - ignore "atom-terminal.sh" file | |
# - execute: `sudo chmod 775 atom-terminal.sh` | |
# | |
# Atom Editor: | |
# Go to your settings > install > search "platformio-ide-terminal" | |
# - Open that package and go to "Core" | |
# - Insert "./atom-terminal.sh" | |
# - on MacOS (cmd + shift + t) to open a new terminal inside your editor | |
# - It should automatically execute the ./atom-terminal.sh | |
# | |
isVagrantRunning=$(vagrant status | grep -c "running") | |
if [ ${isVagrantRunning} -eq 0 ]; then | |
vagrant up | |
fi | |
vagrant ssh -- -t 'cd ~/gitlab/jubilee-laravel-web-app; /bin/bash' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment