2

I want to be able to open dir in sublime from terminal.

Whenever I do subl . it opens current dir in 2 sublime editors. Of course I need it to open only one.

My assumption is that I've messed with symlinks, but I might be wrong.

Lucio
  • 19,191
  • 32
  • 112
  • 191

2 Answers2

5

You didn't messed up with symlinks, sublime has installed correctly. That is actually the right behavior.

The reason why does it open two sublime instances (my bet):

  • There was a project already opened or
  • You didn't closed the previous files opened

In either case you may want to:

  • Close any project (Project -> Close Project) or
  • Close all the files (File -> Close All Files)
Lucio
  • 19,191
  • 32
  • 112
  • 191
0

Adding a -a flag to the subl command causes files to "open in current window", which prevents subsequent windows opening.

alias subl='subl -a'
Pylinux
  • 401