On the command line, I can type edit <folder/file name>
and it will open in TextWrangler, which I haven't used in ages. I'm not sure how the edit
binary got there — I use oh-my-zsh, potentially relevant. I wanted to change subl
to edit
(nicer to type) and discovered it already existed.
I uninstalled TextWrangler and now I get the error
edit: error: -10814
LaunchServices could not locate your copy of TextWrangler.
I've been looking around for how to modify the LaunchServices database and I've rebuilt it but I still get the error. Running which edit
gives me /usr/local/bin/edit
fwiw.
What controls this association and how can I switch it to Sublime Text?