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.
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.
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
public.plain-textUTI by editingcom.apple.LaunchServices.plistor by using duti or RCDefaultApp. – Lri May 01 '13 at 05:33