Updated script and more stuff

This commit is contained in:
Chris Nutter committed 2020-09-11 23:48:00 -07:00
1 parent 42d7473046
commit 81af6301ab
26 files changed
+2373 -10

No files matched your search

+9
View File
@@ -0,0 +1,9 @@
#!/usr/bin/env zsh
# kill all instances of an application
[[ -z "$@" ]] && exit
application_name="$(echo "$1" | awk '{print tolower($0)}')"
ps aux | grep "$application_name" | grep -v 'grep' | awk '{print $2}' | while read process; do
kill -9 "$process"
done