From 8f8a1e8548151a3d2bb3356f7a01fbdae9c70f18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20Doma=C5=84ski?= Date: Tue, 27 May 2025 10:20:30 +0200 Subject: [PATCH] [bump] --- .config/scriptrc/mac.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.config/scriptrc/mac.sh b/.config/scriptrc/mac.sh index 44334fd..243ef15 100644 --- a/.config/scriptrc/mac.sh +++ b/.config/scriptrc/mac.sh @@ -53,4 +53,9 @@ if [[ "$(uname)" == "Darwin" ]]; then check_ssh_add export CHROME_EXECUTABLE='/Applications/Chromium.app/Contents/MacOS/Chromium' + + pidof() { + local name=$1 + ps -Ac -o pid,comm | awk "/^ *[0-9]+ ${name}$/ {print \$1}" + } fi