Skip to content

Instantly share code, notes, and snippets.

@almostwhitehat
Created November 11, 2014 20:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save almostwhitehat/031fe6b6f3737a4b3671 to your computer and use it in GitHub Desktop.
Save almostwhitehat/031fe6b6f3737a4b3671 to your computer and use it in GitHub Desktop.
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