Over a million developers have joined DZone.

'Heroku F-ing Console' Forgot About Aliases

· Cloud Zone

Build fast, scale big with MongoDB Atlas, a hosted service for the leading NoSQL database on AWS. Try it now! Brought to you in partnership with MongoDB.

A while back there was some buzz and agreement around a project called "heroku-f***ing-console," which is a plugin that allows you to just type heroku console instead of heroku run console, and it provides a few other shorthands.

While the tool and the GitHub page provided a little bit of entertainment, there's really no need to make a whole plugin to solve this issue.  Another developer posted his own GitHub page referring to a long-time solution for this problem: aliases.

Here's what you add to your ~/.bash_profile or ~/.zshrc:

alias hc="heroku run console"
alias gp="git push"

Not hard.  The response to this problem with heroku-f***ing-console was way more effort than necessary.

Now it's easier than ever to get started with MongoDB, the database that allows startups and enterprises alike to rapidly build planet-scale apps. Introducing MongoDB Atlas, the official hosted service for the database on AWS. Try it now! Brought to you in partnership with MongoDB.


Opinions expressed by DZone contributors are their own.

The best of DZone straight to your inbox.

Please provide a valid email address.

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}