From d8661bdfa20db5f682bc7aa9dd212c59e3073ef4 Mon Sep 17 00:00:00 2001 From: TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> Date: Mon, 30 Jun 2025 21:14:58 +0900 Subject: updates --- ar/.config/zsh/scripts.zsh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'ar/.config/zsh/scripts.zsh') diff --git a/ar/.config/zsh/scripts.zsh b/ar/.config/zsh/scripts.zsh index 3de8a14..6c217e8 100644 --- a/ar/.config/zsh/scripts.zsh +++ b/ar/.config/zsh/scripts.zsh @@ -450,8 +450,10 @@ function fzf_kill_process() { awk '{print $2}' | xargs -r bash -c ' if ! kill "$1" 2>/dev/null; then - echo "Regular kill failed. Attempting with sudo..." - sudo kill "$1" || echo "Failed to kill process $1" >&2 + if ! kill -9 "$1"; then + echo "Regular kill failed. Attempting with sudo..." + sudo kill "$1" || echo "Failed to kill process $1" >&2 + fi fi ' -- } -- cgit v1.2.3