Created
April 23, 2014 21:55
-
-
Save yetti/11233783 to your computer and use it in GitHub Desktop.
ZSH: function to kill process on port
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function killPort() { | |
lsof -P | grep $1 | awk '{print $2}' | xargs kill -9 | |
} |
This killed my entire computer...
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am using Ohmyzsh do I simply add this to my
.zshrc
file?