2

I want

open ~/.profile

to open my .profile file in Sublime Text 2. I know how to do this with .txt files for example, but I can't figure out how to do that with files that don't have an extension.

Drew
  • 283
  • 1
    You can change the default application for the public.plain-text UTI by editing com.apple.LaunchServices.plist or by using duti or RCDefaultApp. – Lri May 01 '13 at 05:33

1 Answers1

0

If you're talking about a command line, just set up Sublime Text 2's CLI. See Sublime Text 2: OS X Command Line. Basically run:

ln -s "/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl" ~/bin/subl

Once you do that, you can simply open any files with:

subl ~/.profile

spong
  • 2,029