should've checked before committing

This commit is contained in:
yigid balaban 2024-10-22 17:58:01 +03:00
parent 7e300fc04e
commit a6bc546570
Signed by: fyb
GPG Key ID: CF1BBD1336C0A3D6

View File

@ -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