Add list open ports alias
This commit is contained in:
@@ -140,6 +140,10 @@ function clg() {
|
|||||||
git clone "https://github.com/$1" "${@:2}"
|
git clone "https://github.com/$1" "${@:2}"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function lp() {
|
||||||
|
lsof -i -P -n $@ | grep LISTEN
|
||||||
|
}
|
||||||
|
|
||||||
# Check if main exists and use instead of master
|
# Check if main exists and use instead of master
|
||||||
function git_main_branch() {
|
function git_main_branch() {
|
||||||
command git rev-parse --git-dir &>/dev/null || return
|
command git rev-parse --git-dir &>/dev/null || return
|
||||||
|
|||||||
Reference in New Issue
Block a user