This repository has been archived on 2026-10-22. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
dotfiles-archive/.scripts/kapp.sh
T

10 lines
266 B
Bash
Executable File

#!/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