From 7e300fc04e627662cfccb24cf7d9fdbbbb213496 Mon Sep 17 00:00:00 2001 From: Yigid BALABAN Date: Tue, 22 Oct 2024 17:52:52 +0300 Subject: [PATCH] this'll work better ig --- chores/mode/nvim_theme.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/chores/mode/nvim_theme.sh b/chores/mode/nvim_theme.sh index d3417fe..a1df593 100755 --- a/chores/mode/nvim_theme.sh +++ b/chores/mode/nvim_theme.sh @@ -10,4 +10,6 @@ # vars none # reload none -kill -USR1 $(pgrep -f 'nvim') +if pids=$(pgrep -fx 'nvim'); then + echo "$pids" | xargs kill -USR1 +fi