Setting up Bash Aliases

Drupal: 6m
Video Series
Information

This video shows you how to create your own custom shortcuts for various commands. We'll look at some common aliases and see how to add them to our command line environment. This is super handy for commands that you type in all the time and don't want to go through the tedium of typing the whole thing out every time. For example, we show how to automatically go to a particular directory with just one word (e.g. type "clients" and go to the /Users/add1sun/lullabot/clients directory immediately).

Discussion

Comments on this video

Comments here have been temporarily disabled. Please drop a line with our support for any questions or comments about the videos, blog posts, or about the site generally.

Nice video, you can refresh the bash shell environment without closing the terminal using:
$source ~/.bash_profile

Or even better make a alias for that :-)

Combining commands with && is also nice like: alias cl="clear && ls"

Lullabot logo

Lullabot has trained thousands of Drupal developers & guided the development of some of the largest Drupal websites.