From a6bc546570d2e84e8fc6ae23bd4ee27bf5d5acab Mon Sep 17 00:00:00 2001 From: Yigid BALABAN Date: Tue, 22 Oct 2024 17:58:01 +0300 Subject: [PATCH] should've checked before committing --- chores/mode/nvim_theme.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/chores/mode/nvim_theme.sh b/chores/mode/nvim_theme.sh index a1df593..804f5c2 100755 --- a/chores/mode/nvim_theme.sh +++ b/chores/mode/nvim_theme.sh @@ -10,6 +10,11 @@ # vars none # reload none -if pids=$(pgrep -fx 'nvim'); then +handle_usr1() { + return +} +trap handle_usr1 USR1 + +if pids=$(pgrep -f 'nvim'); then echo "$pids" | xargs kill -USR1 fi