Skip to content

Instantly share code, notes, and snippets.

@danshumaker
danshumaker / p-connect.sh
Last active April 16, 2018 16:27 — forked from aaronbauman/p-connect.sh
Connect to a Pantheon database in Sequel Pro
#!/bin/sh
# Dan Shumaker modified&added features:
# 1. Use terminus instead of drush
# 2. Save standard options (if user wants to they can save their settings on lines 14-18 and not have to have any cli options)
# 3. Auto generate standard live,test,dev enviornment files
# 4. Removed dependency on separate spf template file.
#
# Tested with El Capitan, Sequel Pro 1.1 (Obac 177), terminus 0.10.0
# original: https://gist.github.com/aaronbauman/f50cc691eb3ed60a358c
INFO global: Vagrant version: 1.8.5
INFO global: Ruby version: 2.2.3
INFO global: RubyGems version: 2.4.5.1
INFO global: VAGRANT_INSTALLER_VERSION="2"
INFO global: VAGRANT_OLD_ENV_TERM_PROGRAM="Apple_Terminal"
INFO global: VAGRANT_OLD_ENV_SVN_EDITOR="/Applications/MacVim.app/Contents/MacOS/Vim"
INFO global: VAGRANT_OLD_ENV__="/usr/local/bin/vagrant"
INFO global: VAGRANT_OLD_ENV_XPC_SERVICE_NAME="0"
INFO global: VAGRANT_OLD_ENV_VISUAL="/Applications/MacVim.app/Contents/MacOS/Vim"
INFO global: VAGRANT_INSTALLER_EMBEDDED_DIR="/opt/vagrant/embedded"