[TxMt] Re: Terminal from within textmate?

Christian Eager ceager at gmail.com
Wed Jan 19 16:47:31 UTC 2011


When you execute a command, $PWD is '/', not the directory of the current
file or project. So, assuming your preferred `rails' command is on your
path, you'd need to have:

"cd /path/to/my/rails/app; rails g model MyModel name:string"

for the generator to succeed.

On Wed, Jan 19, 2011 at 9:43 AM, Mikael Henriksson <mikael at zoolutions.se>wrote:

> That doesn't really work. If I for instance want to run
> "rails g model MyModel name:string"
>
> TextMate just bugs out with an error message.
>
>  Mikael Henriksson
>
> Tel: +46 (0) 730- 393 200
> mikael at zoolutions.se
>
>
>
>
> On Tue, Jan 18, 2011 at 10:08 PM, Dru Kepple <dru at summitprojects.com>wrote:
>
>> On Jan 18, 2011, at 11:54 AM, Mikael Henriksson wrote:
>>
>> The thing I hate the most about the otherwise great app is the possibility
>> to run terminal (rails) commands from within Textmate.
>>
>> Is that at all possible? It would save me loads of confusion switching
>> between windows.
>>
>> Mikael Henriksson
>>
>>
>> You can press Control-R on any line to run that line of text on the
>> command line.
>>
>> +dru
>>
>>
>>
>> _______________________________________________
>> textmate mailing list
>> textmate at lists.macromates.com
>> http://lists.macromates.com/listinfo/textmate
>>
>
>
>
> _______________________________________________
> textmate mailing list
> textmate at lists.macromates.com
> http://lists.macromates.com/listinfo/textmate
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macromates.com/textmate/attachments/20110119/fa717ca1/attachment.html>


More information about the textmate mailing list