Created
April 6, 2020 00:37
-
-
Save emerson-pereira/ad79d05f7a52bec5973ad4624483c0b9 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# Kills port | |
function kill-port() { | |
echo 'Killing port ' $1 | |
kill $(lsof -t -i :$1) | |
echo 'Killed port ' $1 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment