It's a wrap for Chrome Dev Summit 2020! Watch all the sessions at now!

Set Up Command Line Shortcuts

Set up shortcuts for the command line tasks you use over and over again. If you find yourself typing the same thing in your command line repeatedly, this will alleviate that.


  • Make the command line work for you; create aliases that are easy to remember and fast to type.
  • Give Github dotfiles a try to save, share and sync up your command line shortcuts.

How to set them up

The easiest way to create command-line shortcuts is to add aliases for common commands to your bashrc file. On Mac or Linux:

  1. From the command line anywhere, type:

    open -a 'Sublime Text' ~/.bashrc
  2. Add a new alias, for example:

    alias master='git checkout master'
  3. Anytime you are in a directory with a git repo, you can run the command master and it will checkout the master branch for you.

Shortcuts we recommend

These are a few commands that you may find useful.

Command & Alias
Open your editor alias st='open -a "Sublime Text"'
Launch a server alias server="python -m SimpleHTTPServer"
Go to a directory you commonly work in alias p="cd ~/projects"

Save, share and sync your shortcuts

Store your shortcuts and dot files on Github. The major gain with this is your shortcuts can be shared across devices and they are always backed up.

Github even created a dedicated page for dotfiles and quite a few of the Chrome Team have forked Mathias Bynens' dotfiles.