How to open idea from the command line like we do in RubyMine?

I would like to know, how to open IntelliJIdea from the command line like we do in RubyMine(see below)?
Considering that the underlying opened directory is from a previous IntelliJIdea project which I have been working. So I would expected that IntelliJIdea would be opened with that project, but instead of that it persists opening in the starting project Dialog. So is that possible? I have just bought the last version.

(with RubyMine)
[TODAY]$ cd sample_app
[sample_app (master)]$ ls -la
total 72
drwxr-xr-x  25 enogrob  staff   850B Aug 22 07:02 ./
drwxr-xr-x  12 enogrob  staff   408B Aug 22 04:00 ../
:
:
-rw-r--r--   1 enogrob  staff   274B Aug 19 18:07 Rakefile
drwxr-xr-x   8 enogrob  staff   272B Aug 22 04:00 app/
drwxr-xr-x  10 enogrob  staff   340B Aug 19 18:07 config/
-rw-r--r--   1 enogrob  staff   159B Aug 19 18:07 config.ru
drwxr-xr-x   5 enogrob  staff   170B Aug 20 05:01 db/
drwxr-xr-x   3 enogrob  staff   102B Aug 19 18:07 doc/
drwxr-xr-x   4 enogrob  staff   136B Aug 22 04:00 lib/
drwxr-xr-x   5 enogrob  staff   170B Aug 20 05:01 log/
drwxr-xr-x   8 enogrob  staff   272B Aug 19 20:00 public/
drwxr-xr-x   3 enogrob  staff   102B Aug 19 18:07 script/
drwxr-xr-x   4 enogrob  staff   136B Aug 20 04:59 spec/
drwxr-xr-x   6 enogrob  staff   204B Aug 19 19:49 tmp/
drwxr-xr-x   4 enogrob  staff   136B Aug 19 18:07 vendor/
[sample_app (master)]$ rvm current
ruby-1.9.3-p374@rails3tutorial2ndEd
[sample_app (master)]$ mine .
[sample_app (master)]$

Please sign in to leave a comment.