diff options
-rw-r--r-- | VERSION | 4 | ||||
-rw-r--r-- | sh/profile.d/visual.sh | 3 |
2 files changed, 3 insertions, 4 deletions
@@ -1,2 +1,2 @@ -tejr dotfiles v4.5.0 -Wed Jan 2 10:29:09 UTC 2019 +tejr dotfiles v4.5.1 +Wed Jan 2 10:33:20 UTC 2019 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 |