[Rubygems-developers] Quick feature request: cd to directory of a
gem
Michael Neumann
mneumann at ntecs.de
Tue Jul 13 06:29:50 EDT 2004
On Tue, Jul 13, 2004 at 06:27:57PM +1000, Gavin Sinclair wrote:
> Folks,
>
> Context: I want to check out Net::SSH - the code, that is. So I
> install the gem; now what?
>
> I want to go
>
> gem cd net-ssh
>
> and have a shell prompt open in /usr/local/lib/ruby/gems/1.8/gems/net-ssh
> so I can poke around.
>
> Is this a cool feature or not? And how could it be implemented?
> Maybe I've missed something simple, but I tried a while ago with no
> success. Obviously one needs to be mindful of people's different
> shells as well.
I think it's not possible this way, but if "gem cd net-ssh" would print
"cd pathname" to stdout, you could simply write:
`gem cd net-ssh`
For me it would suffice if there would be a "gem dir net-ssh" command
that outputs just the pathname. But not sure if it's worth.
Regards,
Michael
More information about the Rubygems-developers
mailing list