Add list open ports alias

This commit is contained in:
2025-04-10 17:17:27 +01:00
parent 47edb094f8
commit 78a0c68f95

View File

@@ -140,6 +140,10 @@ function clg() {
git clone "https://github.com/$1" "${@:2}"
}
function lp() {
lsof -i -P -n $@ | grep LISTEN
}
# Check if main exists and use instead of master
function git_main_branch() {
command git rev-parse --git-dir &>/dev/null || return