New script to kill the rails s: lsof -i:3000 | grep "ruby" | awk '{print $2}' | xargs kill -15
I’ve set that as a workflow in Alfred that runs when I hit command-control-r (⌘⌃R). I set this up last year because I find Rails gets hung up and control-c isn’t enough to kill it. However, prior to right now I was using lsof -i:3000 | xargs kill -15 which would also kill Firefox (Zen), grep for Ruby and then grabbing the specific processes fixed this.