Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 at 20:27

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.