diff --git a/.bashrc b/.bashrc index 0b37d29299f4bc08dfb0906f5145783e7b82d01b..1341b3add73ae5c533aa1d19eb304d2bdf6ca29f 100644 --- a/.bashrc +++ b/.bashrc @@ -219,6 +219,21 @@ match_ssl_pair () { return "$exitcode" } +flatpak-kill () { + if [ "$#" -lt 1 ] + then + echo "You must specify application name." >> /dev/stderr + false + else + name="$1" + shift + for pid in $(flatpak ps --columns=application,pid | awk "tolower(\$2) ~ /$name/ {print \$3}") + do + pkill "$@" "$pid" + done + fi +} + __prompt () { local exitstatus="$?" local runduration endtime