aboutsummaryrefslogtreecommitdiff
path: root/sh
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-01-02 23:32:37 +1300
committerTom Ryder <tom@sanctum.geek.nz>2019-01-02 23:32:37 +1300
commitcbd2009bb5ec4eff74d01a6263de51230fd5be18 (patch)
treea9afcc4cdaf8c74cef362841055cb1fb95ab0e0d /sh
parentMerge branch 'release/v4.5.0' (diff)
downloaddotfiles-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.sh3
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