From c2820818b62797817856ed469d2007930da9472b Mon Sep 17 00:00:00 2001 From: Michael Ochmann Date: Wed, 16 Feb 2022 13:45:17 +0100 Subject: [PATCH] added function for looking up used port on macos --- .bashrc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.bashrc b/.bashrc index a6c8cf3..fc72da2 100644 --- a/.bashrc +++ b/.bashrc @@ -244,6 +244,11 @@ sshttps() { sshttp $1 $2 443 } +whichport() { + sudo lsof -i -P | grep LISTEN | grep ":$1" +} + + # ENVIRONMENT NPM_PACKAGES="${HOME}/.npm-packages"