mirror of
https://github.com/Mastermindzh/dotfiles.git
synced 2024-11-22 06:44:41 +01:00
killport, installed commands and efremove
This commit is contained in:
parent
8d6fb1bf62
commit
015f706e54
@ -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
|
||||
}
|
Loading…
Reference in New Issue
Block a user