Sublime Forum

'subl -n foo' flaky after upgrading to mavericks

#1

Since upgrading to OS X mavericks, the ‘subl’ alias frequently doesn’t work.

The way it used to work: from the shell prompt, typing ‘subl -n .’ would open a new window in Sublime Text with the current directory in the sidebar.

The way it works now: from the shell prompt, typing ‘subl -n .’ switches focus to sublime but doesn’t open a new window with the current directory. If no other windows are open (but ST2 is running) it will open a new window with no contents. Maybe one out of 10 times it successfully opens the directory in ST2. Specifying a file instead of a directory has the same effect (new window or no action, but doesn’t open the file).

Some versions:
Sublime Text 2 version 2.0.2 build 2221
shell: zsh
alias subl=’/Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl’

0 Likes

#2

Subl command not working as expected anymore identifies a similar problem though its visible on OS X Lion (not Mavericks).

It seems as though zsh is the common element between my post and that thread. Switching to bash and setting up the same alias works.

I tried to subshell out to bash and launch it but no dice.

0 Likes