Fork me on GitHub

Open Files from Terminal

Open Files from Terminal

Alot of the time I find myself working in terminal, doing what not in a directory, and want to open files in my IDE. I would pretty much have to open up finder and then find the file, that i was looking at terminal. Then a brain wave came about. So i made a quick bash script that simply allows me to type in edit “filename” and it will open in my IDE, which happens to be Coda.

#!/bin/bash
open -a "Coda" $1

Put this in your /usr/bin folder, run a sudo chmod +x to make it executable, and you should be able to now run edit “filename”. Of course if you use another IDE just replace Coda with whatever you use, or whatever it is in your applications folder!

Posted by voidet

Categorised under Software
Bookmark the permalink or leave a trackback.

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

or