nvim/pack/acp/start/coc.nvim/bin/terminateProcess.sh
2024-11-05 11:26:38 +00:00

12 lines
184 B
Bash
Executable file

#!/bin/bash
terminateTree() {
for cpid in $(pgrep -P $1); do
terminateTree $cpid
done
kill -9 $1 > /dev/null 2>&1
}
for pid in $*; do
terminateTree $pid
done