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
From the OS X man page for
open
:So all you need to do is add the following line to
~/.bashrc
or~/.profile
or if you have Sublime Text installed in the usual location,
Then from a command line or script, you can run