diff options
author | Aaron LI <aly@aaronly.me> | 2019-06-24 16:53:16 +0800 |
---|---|---|
committer | Aaron LI <aly@aaronly.me> | 2019-06-24 16:53:16 +0800 |
commit | 11071e431f11236c6068189b7111dd15f569b089 (patch) | |
tree | 097727cb9a2e3942c8425af82a593246b51ada02 | |
parent | f09345b96d89c6af828c8e61c37980703919035b (diff) | |
download | dotfiles-11071e431f11236c6068189b7111dd15f569b089.tar.bz2 |
zsh: Fix is_running() function
-rw-r--r-- | _zsh/40-functions.zsh | 2 |
1 files changed, 1 insertions, 1 deletions
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 } |