Skip to content

Instantly share code, notes, and snippets.

@dvydra
Created August 22, 2012 05:23
Show Gist options
  • Save dvydra/3422479 to your computer and use it in GitHub Desktop.
Save dvydra/3422479 to your computer and use it in GitHub Desktop.
Click on filename in terminal and open file in rubymine
1) Install iTerm2, it's awesome.
2) locate your rubymine commandline integration thingy, it's usually `/usr/local/bin/mine`
3) Open iTerm2 preferences. Go to Profiles -> Default -> Advanced.
4) Select "Run command..." under Semantic History
5) Enter "/usr/local/bin/mine --line \2 \1" as the command
6) Command-Click on a filename in the terminal, like in an rspec output, or git status result
7) Enjoy the fineness.
@pama
Copy link

pama commented Jan 7, 2017

Now is Profile -> Open Profiles -> Edit Profiles -> Advanced tab

@steakchaser
Copy link

Above didn't work for me. This did though: https://coderwall.com/p/mdgc4g/quickly-open-files-in-iterm-with-rubymine-on-macos

/Applications/RubyMine.app/Contents/MacOS/rubymine \5 --line \2 \1

@dmakhmutov
Copy link

It works for me
[ -z "\2" ] && /usr/local/bin/mine \1 || /usr/local/bin/mine --line \2 \1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment