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

Discover a centralized approach to monitor your virtual infrastructure, on-premise IT environment, and cloud infrastructure – all on a single platform.

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.

Learn how to auto-discover your containers and monitor their performance, capture Docker host and container metrics to allocate host resources, and provision containers.


Opinions expressed by DZone contributors are their own.

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

{{ parent.tldr }}

{{ parent.urlSource.name }}