✨ Changed killport to script, not alias
This commit is contained in:
parent
f94a6dd3e5
commit
c64d90e2b2
2 changed files with 2 additions and 1 deletions
1
aliases
1
aliases
|
|
@ -204,7 +204,6 @@ alias pf="pfetch"
|
||||||
alias has="dependencycheck"
|
alias has="dependencycheck"
|
||||||
alias ipaddr="curl ifconfig.me/all.json | jq"
|
alias ipaddr="curl ifconfig.me/all.json | jq"
|
||||||
alias hwclock="doas hwclock"
|
alias hwclock="doas hwclock"
|
||||||
alias killport="fuser -k"
|
|
||||||
alias kill9="killall -9" # kills process by name, e.g. kill9 cmus
|
alias kill9="killall -9" # kills process by name, e.g. kill9 cmus
|
||||||
alias npm_upgrade="doas npm install --location=global npm@latest"
|
alias npm_upgrade="doas npm install --location=global npm@latest"
|
||||||
alias {pacquery,pacgrep,pacq}="pacman -Q | grep $1"
|
alias {pacquery,pacgrep,pacq}="pacman -Q | grep $1"
|
||||||
|
|
|
||||||
2
scripts/killport
Executable file
2
scripts/killport
Executable file
|
|
@ -0,0 +1,2 @@
|
||||||
|
#!/bin/bash
|
||||||
|
fuser -k "$1"/tcp
|
||||||
Loading…
Add table
Add a link
Reference in a new issue