From 78a0c68f9514ee85bc4497b4947b381c999ff6d3 Mon Sep 17 00:00:00 2001 From: Chris Date: Thu, 10 Apr 2025 17:17:27 +0100 Subject: [PATCH] Add list open ports alias --- .config/shell/aliasrc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.config/shell/aliasrc b/.config/shell/aliasrc index fc4a2aa..12a89a0 100644 --- a/.config/shell/aliasrc +++ b/.config/shell/aliasrc @@ -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