2023-05-09 20:02:34 +00:00
|
|
|
# kill all instances of a process by name
|
2024-11-19 13:42:11 +00:00
|
|
|
ka() { a__kill_all "${@}"; }
|
|
|
|
a__kill_all() {
|
2024-11-16 14:42:21 +00:00
|
|
|
killall \
|
|
|
|
"${@}"
|
|
|
|
}
|
2023-05-09 20:02:34 +00:00
|
|
|
|
|
|
|
# force kill all instances of a process by name
|
2024-11-19 13:42:11 +00:00
|
|
|
kaf() { a__kill_all_force "${@}"; }
|
|
|
|
a__kill_all_force() {
|
2024-11-16 14:42:21 +00:00
|
|
|
killall \
|
2024-11-16 14:59:57 +00:00
|
|
|
-9 \
|
2024-11-16 14:42:21 +00:00
|
|
|
"${@}"
|
|
|
|
}
|