Why can I not get this bash command to not work correctly?
As of now I am using this to open files in Sublime Text
open -a Sublime\ Text path/to/file_directory/file_name.php (doesn't have to be php)
This works on most files but doesn't work on some files.
AKA:
- .htaccess
- some_file (without .txt, .php or any other ending to it)
- some_file.txt
In OS X, each file type (identified by the file name extension, e.g.
.txtor.php) has a default program associated with it, that is used to open files of this kind. It seems like you do not have any program associated with.txtor.htaccessfiles.Here it is explained how to change file associations.