Setting ‘EDITOR’ or ‘BUNDLER_EDITOR’ environment variable
Assuming you’re using the bash shell, you’ll want to edit either your ~/.bashrc or ~/.bash_profile with: export EDITOR=<editor name> Example, specifically for Sublime: export EDITOR=’subl -w’ See: Sublime OS X Command Line docs