Ubuntu 14.08 alias for long command

From Ubuntu 11.04 and later, it’s already enabled:

if [ -f ~/.bash_aliases ]; then
    . ~/.bash_aliases
fi

So you just need to create or update the file ~/.bash_aliases or you can just update in the ~/.bashrc file but the former way is the best one

gedit ~/.bash_aliases

or nano; choose in which text editor you are comfortable

nano ~/.bash_aliases

 

alias re_staging="heroku restart -a staging-myapp"
alias re_production="heroku restart -a myapp"
alias re_stag="heroku restart -a staging-myapp"

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s