diff options
| author | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2025-06-30 21:14:58 +0900 |
|---|---|---|
| committer | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2025-06-30 21:14:58 +0900 |
| commit | d8661bdfa20db5f682bc7aa9dd212c59e3073ef4 (patch) | |
| tree | 4f45c06c75a39e93fa8376ba3e96644818aaa01c /ar/.config/zsh/scripts.zsh | |
| parent | 34dde4c6819f59c2bac300cf98fffb2349d09aba (diff) | |
updates
Diffstat (limited to 'ar/.config/zsh/scripts.zsh')
| -rw-r--r-- | ar/.config/zsh/scripts.zsh | 6 |
1 files changed, 4 insertions, 2 deletions
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 ' -- } |
