/alias

The simple command I always forget to use

Primary LanguageRubyMIT LicenseMIT

alias

The Unix gods created this simple command that I always forget to use.

With the recent popularity of heroku-fucking-console, it seems others forget it as well. Take a moment to set aliases. Your fingers will thank you.

What is an alias?

All day, you type:

heroku run console

or

git push

Imagine a world where you could just type:

hc

or

gp

Just add this to ~/.bash_profile (or ~/.zshrc if zsh is your thing)

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

Which commands should I alias?

history | ruby -e "$(curl -fsSL https://raw.github.com/ankane/alias/master/alias.rb)"

View source

Note: This does not take into account current aliases

For a deeper look at your command history, check out the awesome Huffshell