From 0f8f171a353ec4f8a55c8978094d6188cf407923 Mon Sep 17 00:00:00 2001 From: Adar Nimrod <nimrod@shore.co.il> Date: Thu, 26 Nov 2020 23:13:20 +0200 Subject: [PATCH] Delete the flatpak_kill shell function. ElementaryOS now has a new enough Flatpak pacakge that has the kill command. --- .bashrc | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/.bashrc b/.bashrc index 106e37f..f146484 100644 --- a/.bashrc +++ b/.bashrc @@ -303,21 +303,6 @@ match_ssl_pair () { return "$exitcode" } -flatpak_kill () { - if [ "$#" -lt 1 ] - then - echo "You must specify application name." >&2 - false - else - name="$1" - shift - for pid in $(flatpak ps --columns=application,pid | awk "tolower(\$2) ~ /$name/ {print \$3}") - do - pkill "$@" "$pid" - done - fi -} - # shellcheck disable=SC2120 prune_ssh_sockets () { { [ "${1:-}" != '-f' ] && [ "${1:-}" != '--force' ]; } || killall -v ssh || true -- GitLab