From cbd2009bb5ec4eff74d01a6263de51230fd5be18 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Wed, 2 Jan 2019 23:32:37 +1300 Subject: Use short switches for emacs server pgrep Turns out the pgrep from procps version 3.2.8 doesn't support these longer options. --- sh/profile.d/visual.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'sh') diff --git a/sh/profile.d/visual.sh b/sh/profile.d/visual.sh index 359bf13a..899437af 100644 --- a/sh/profile.d/visual.sh +++ b/sh/profile.d/visual.sh @@ -5,8 +5,7 @@ if command -v emacs >/dev/null 2>&1 && # Use or start a GNU Emacs client, if possible if command -v pgrep >/dev/null 2>&1 && - pgrep --exact --full --euid="$USER" \ - 'emacs --daemon' >/dev/null || + pgrep -fxu "$USER" 'emacs --daemon' >/dev/null || emacs --daemon >/dev/null ; then VISUAL=emacsclient -- cgit v1.2.3