From 11071e431f11236c6068189b7111dd15f569b089 Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Mon, 24 Jun 2019 16:53:16 +0800 Subject: zsh: Fix is_running() function --- _zsh/40-functions.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_zsh/40-functions.zsh b/_zsh/40-functions.zsh index 83615ae..cbf15ad 100644 --- a/_zsh/40-functions.zsh +++ b/_zsh/40-functions.zsh @@ -16,7 +16,7 @@ function exists() { ## Check whether the program is running function is_running() { - pgrep -x -u "${USER}" "$1" /dev/null 2>&1 + pgrep -x -u "${USER}" "$1" >/dev/null 2>&1 } -- cgit v1.2.2