killport, installed commands and efremove

This commit is contained in:
Rick van Lieshout 2018-08-22 09:16:10 +02:00
parent 8d6fb1bf62
commit 015f706e54

View File

@ -29,6 +29,7 @@ alias psmem='ps auxf | sort -nr -k 5 | head -n 5'
#dotnet core
alias efupdate="dotnet ef database update"
alias efmigrate="dotnet ef migrations add"
alias efremove="dotnet ef migrations remove"
alias dotnetnew="dotnet new webapi -o "
##utility
@ -57,6 +58,8 @@ alias cmyip='curl -s http://ipecho.net/plain; echo'
alias mkdir='mkdir -p'
alias wget='wget -c'
alias ls='ls --color=auto'
alias installed='sudo pacman -Qetq'
alias aurinstalled='sudo pacman -Qmq'
alias sudo='sudo '
# grub
@ -117,3 +120,12 @@ isup(){
printLine(){
printf '%*s\n' "${COLUMNS:-$(tput cols)}" '' | tr ' ' -
}
# function to kill a port
killport () {
if [ -z "$1" ] ; then
echo "please specify a port to kill"
else
fuser -k $1/tcp
fi
}