Skip to content

Instantly share code, notes, and snippets.

@mokolabs
Created August 16, 2012 19:34
Show Gist options
  • Save mokolabs/3372944 to your computer and use it in GitHub Desktop.
Save mokolabs/3372944 to your computer and use it in GitHub Desktop.
# Heroku account switcher
# Heroku account switcher
function switch() {
rm -rfd ~/.heroku/credentials
cp ~/.heroku_logins/$1 ~/.heroku/credentials
}
@mokolabs
Copy link
Author

To install...

  1. Copy this function into your .bash_profile.
  2. Login to first Heroku account normally.
  3. Copy ~/.heroku/credentials to ~/.heroku_logins/ACCOUNT
  4. Repeat as needed for each account.

To switch accounts, enter this:

switch ACCOUNT

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment