From 770b62c42614375e57bf658c18495784fade0698 Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Tue, 28 Feb 2017 08:56:35 +0800 Subject: zsh: add function is_running() --- _profile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '_profile') diff --git a/_profile b/_profile index 806b7e2..237a91c 100644 --- a/_profile +++ b/_profile @@ -37,7 +37,7 @@ _exists() { ## Check whether the program is running _running() { - pgrep -x -u ${USER} $1 &> /dev/null + pgrep -x -u "${USER}" $1 &> /dev/null } -- cgit v1.2.2