← Back to Upcase

Sending Term Signal To Rails Server Process AutoMagically


(Adam Faur) #1

The ‘kill -INT ruby’ command that was used at 17min 27sec of part one in this course when typed was autoMagically changed into the pid of the ruby server process…
I thought this was cool and didnt know how it happend, is this a special feature of zsh?

I would love to know as I always do ‘ps aux | grep “ruby”’ then have to plug in the pid to my kill command to terminate my rails server process.

Thanks,

Adam Faur


(Matthew Mongeau) #2

Hey @afaur,

I use oh-my-zsh which provides completions for that. oh-my-zsh handles it here. I’m not sure how you’d get the functionality without using oh-my-zsh.

Hope this helps!


(Adam Faur) #3

Yes this is of much help, and thank you for your response.
I enjoyed your intermediate rails course, and when you were able to do this my jaw dropped!
I rewinded the video to make sure I saw correctly =)

I am digging further into zsh and reading up with diligence…

I have added a new book to my buy list…
(http://www.amazon.com/exec/obidos/tg/detail/-/1590593766/?tag=6ltz1q9sc1bbe9p-20)

A railscast to my watch list…
(http://railscasts.com/episodes/308-oh-my-zsh)

And a blog to my reading list…
(http://stevelosh.com/blog/2010/02/my-extravagant-zsh-prompt/)

Thanks for your response…

All the best!

Adam Faur