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.
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.
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):
In either case you may want to:
Adding a -a
flag to the subl command causes files to "open in current window", which prevents subsequent windows opening.
alias subl='subl -a'
subl
? How did you installed sublime? – Lucio Nov 28 '14 at 19:27sudo ln -s /opt/Sublime\ Text\ 2/sublime_text /usr/bin/sublime
or similar... I believe subl is a symlink for sublime - that I've install a long ago – AndreiMotinga Nov 28 '14 at 19:31