Created
May 5, 2023 15:15
-
-
Save furudean/f96e0fcb4dc991999cd465329fddc241 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
| function killport --argument port | |
| set pids (lsof -t -i tcp:$port) | |
| if test -n "$pids" | |
| kill $pids | |
| echo "killed process $pids" | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment