Over a million developers have joined DZone.

'Heroku F-ing Console' Forgot About Aliases

DZone's Guide to

'Heroku F-ing Console' Forgot About Aliases

· Cloud Zone
Free Resource

MongoDB Atlas is a database as a service that makes it easy to deploy, manage, and scale MongoDB. So you can focus on innovation, not operations. 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.

MongoDB Atlas is the best way to run MongoDB on AWS — highly secure by default, highly available, and fully elastic. Get started free. Brought to you in partnership with MongoDB.


Opinions expressed by DZone contributors are their own.


Dev Resources & Solutions Straight to Your Inbox

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 }}