If you have rails server running locally and need to kill it fast, I use this function:
stop() {
kill -9 $(ps ax | grep $1 | grep -v "grep" | awk '{print $1}')
}
Usage:
stop ruby
stop foreman
Add to your bashrc or zshrc.
If you have rails server running locally and need to kill it fast, I use this function:
stop() {
kill -9 $(ps ax | grep $1 | grep -v "grep" | awk '{print $1}')
}
Usage:
stop ruby
stop foreman
Add to your bashrc or zshrc.