/top/
/new/
/best/
/ask/
/show/
/job/
^
slacker news
login
about
←back to thread
Show HN: Port Kill – A lightweight macOS status bar development port monitor
(github.com)
125 points
lexokoh
| 1 comments |
24 Aug 25 03:08 UTC
|
HN request time: 0s
|
source
Show context
faangguyindia
◴[
24 Aug 25 05:25 UTC
]
No.
45001634
[source]
▶
>>45000982 (OP)
#
On macOS i've this in my zshrc file:
`killport() { kill -9 $(lsof -t -i :$1 -sTCP:LISTEN) }`
i use it like killport 8000
replies(2):
>>45001695
#
>>45002400
#
1.
porridgeraisin
◴[
24 Aug 25 08:22 UTC
]
No.
45002400
[source]
▶
>>45001634
#
Yeah, I have a function `whoseport` which is just your subcommand. I usually manually type kill or whatever I want with `$(whoseport 3000)`
ID:
GO
↑