Created
November 11, 2014 20:53
-
-
Save almostwhitehat/031fe6b6f3737a4b3671 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Pry.editor = proc { |file, line| "rubymine #{file} --line #{line} #{file}" } | |
Pry::Commands.create_command "rm" do | |
description "Launches rubymine at the current point" | |
def process | |
run 'edit --current' | |
end | |
end | |
Pry.config.hooks.add_hook(:before_session, :rm) do |_, _, _pry_| | |
_pry_.run_command("rm") | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment