Add pp alias to get PID occupying a port

This commit is contained in:
Josh Sherman 2018-09-24 15:50:33 -05:00
parent 551dd0a2b3
commit 2fddb56bf1
No known key found for this signature in database
GPG key ID: 55B058A80530EF22

View file

@ -61,6 +61,11 @@ function nvm {
fi
}
# PID Port
function pp {
sudo ss -lptn sport = :$1 | grep -Eo 'pid=[0-9]+' | cut -c5-
}
# function vim {
# BACKGROUND=$(xtermcontrol --get-bg)
#