diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2019-01-02 23:32:37 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2019-01-02 23:32:37 +1300 |
commit | cbd2009bb5ec4eff74d01a6263de51230fd5be18 (patch) | |
tree | a9afcc4cdaf8c74cef362841055cb1fb95ab0e0d /sh | |
parent | Merge branch 'release/v4.5.0' (diff) | |
download | dotfiles-cbd2009bb5ec4eff74d01a6263de51230fd5be18.tar.gz dotfiles-cbd2009bb5ec4eff74d01a6263de51230fd5be18.zip |
Use short switches for emacs server pgrep
Turns out the pgrep from procps version 3.2.8 doesn't support these
longer options.
Diffstat (limited to 'sh')
-rw-r--r-- | sh/profile.d/visual.sh | 3 |
1 files changed, 1 insertions, 2 deletions
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 |