Skip to content

Instantly share code, notes, and snippets.

@daison12006013
Created December 12, 2017 02:50
Show Gist options
  • Save daison12006013/c63b7b0c8a21ed498c6c01f5990b01f7 to your computer and use it in GitHub Desktop.
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
#!/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