Jon For Rent // The Technology Ramblings of Jonathan Molina // Making Espresso Terminal Friendly

Making Espresso Terminal Friendly

posted almost 3 years ago (Apr 06, 2009 at 07:02 AM)
So thanks to Macheist and all the people who paid for the Macheist bundle I got myself a copy of Espresso, but it didn't behave like Textmate so this is my method to fixing that :)
textmate_icn.pngBannerIcon.png
I been a happy user of CSSEdit for a very long time and it's part of my web dev tool belt. Another tool I use on a daily basis is TextMate. TextMate is the swiss army knife of text editors but that has it's cons and pros. Quick example is there is no visual presentation for CSS which would be great when you are trying for quick constant updates ... that's where CSSEdit came in play but with Espresso now in my tool belt TextMate will be use less for web dev I am thinking.
I love both TextMate and Espresso and with Espresso being so young it is a great editor already but it is missing one of the key features that I dug about Textmate ... being able to open files and folders from the terminal well I found a quick solution for that and for any of the terminal geeks out there I am sure they have already figured this out but for the one that haven't do this and you can do the same thing with Espresso now.
In Terminal type:
cd ~ (that makes sure you are in your home folder)
open -e .bash_profile (Will open TextEdit with the .bash_profile file)
With the file open add this line to it
alias esp="open -a Espresso"
Save it and quit TextEdit.
If you get a message saying ".bash_profile does not exist" then type in this command
vi ~/.bash_profile
(On your keyboard press the I key once)
(Add this line)
alias esp="open -a Espresso"
(Press the ESC key on your keyboard once and type in :wq)
Close your terminal and open it up again. You should know be able to type "esp" in terminal alone Espresso will load up and if you type something like any of these in your terminal window:
esp Filename.txt
esp ~/Sites/Folder
esp ~/.bash_profile
esp FolderName
It shall open it all within Espresso just like TextMate would. So you get the idea I hope.
Good Luck and Thanks to MacRabbit for creating such beautiful and useful applications!
blog comments powered by Disqus