aboutsummaryrefslogtreecommitdiffstats
path: root/_profile
diff options
context:
space:
mode:
authorAaron LI <aaronly.me@outlook.com>2017-02-28 08:56:35 +0800
committerAaron LI <aaronly.me@outlook.com>2017-02-28 08:56:35 +0800
commit770b62c42614375e57bf658c18495784fade0698 (patch)
tree0ee86ef53229e9264292b06e34b2227406fc2879 /_profile
parentd3f6e2625090f67d4cb3adba3a7adea25e8b4b74 (diff)
downloaddotfiles-770b62c42614375e57bf658c18495784fade0698.tar.bz2
zsh: add function is_running()
Diffstat (limited to '_profile')
-rw-r--r--_profile2
1 files changed, 1 insertions, 1 deletions
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
}