hero.rb
hero.rb
swizzles Heroku credentials and shows the currently used one if no argument has been specified. This script derives from Aeonscope’s Managing Multiple Heroku Accounts.
Assumptions
You have [email protected]
in ~/.heroku
.
Usage
$ hero
Heroku credentials not found.
$ hero [email protected]
$ hero
Operating under [email protected].
Installation
-
Clone the repository
-
Make the script executable
$ chmod +x hero.rb
-
Add the repository’s directory to your Bash path within
$BASH_SOURCE
:export PATH="~/PATH_TO_REPOSITORY/:$PATH";