Text Editors
At times you might want to open up a file from the command line with your favorite text editor, here I will show you how to accomplish this with Brackets, but this can be modified to work with any text editor.
In Brackets you will need to enable the ability to open the program from the command line by going to file and click on Install Command Line Shortcut
in Brackets this will create a symbolic link to the .app file on OSX.
Now if you want to open up a file or folder just use the following command.
brackets ~/Desktop/app.js
Here is the full bash script that you can use or modify for your favorite text editor.
I always had a passion for the field of STEM (Science, Technology, Engineering, and Math) and I knew I wanted to do something to make a difference in the world. I just didn’t know where to start. I was an immigrant in a new country, grew up in a tough environment, and wasn’t sure how… Read More