Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

When I type

subl ~/.profile

I expect Sublime to open my .profile file. This works with some files, although I couldn't find a pattern to which files.

Is this a bug in Sublime or have I done something wrong?

share|improve this question
    
It happens to me as well. I have the feeling it only fails when Sublime isn't open yet. – slhck May 3 '13 at 7:13
    
Using subl -n <file> helps? – Salem May 3 '13 at 13:15
1  
If subl -n helps when it is closed, I suppose you could create a shell script named subl that first checks if the process is running, and if not, adds -n. A better solution would be Sublime Text 2 adds this feature within its code of course :) – Dolan Antenucci May 3 '13 at 16:13
    
Cannot reproduce in Sublime Text 2 version 2.0.2 build 2221. Are you using an outdated subl you copied somewhere? What happens when you use the one in /Applications/Sublime Text 2.app/Contents/SharedSupport/bin/? – Daniel Beck Jul 21 '13 at 11:47
    
If subl -n helps, add this to your .bashrc - alias subl='if [[ $(ps -ef | grep sublime_text | grep -v grep) ]]; then subl; else subl -n; fi' – mreq Jan 27 '14 at 20:27

You must log in to answer this question.

Browse other questions tagged .