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

This question already has an answer here:

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.

share|improve this question

marked as duplicate by allquixotic, Scott, Brad Patton, Everett, user495470 May 1 '13 at 5:31

This question was marked as an exact duplicate of an existing question.

You can change the default application for the public.plain-text UTI by editing or by using duti or RCDefaultApp. – user495470 May 1 '13 at 5:33

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" ~/bin/subl

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

subl ~/.profile

share|improve this answer

Not the answer you're looking for? Browse other questions tagged .