aboutsummaryrefslogtreecommitdiff
path: root/sh/profile.d/visual.sh
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-01-02 23:33:38 +1300
committerTom Ryder <tom@sanctum.geek.nz>2019-01-02 23:33:38 +1300
commit499de58a83f5a0492373728124248103a63600e0 (patch)
tree21929506193865aa29d976be6037f32480637000 /sh/profile.d/visual.sh
parentMerge branch 'release/v4.5.0' (diff)
parentBump VERSION (diff)
downloaddotfiles-32ed85c188f5d0ea70f3389d6020e1094362ec95.tar.gz (sig)
dotfiles-32ed85c188f5d0ea70f3389d6020e1094362ec95.zip
Merge branch 'hotfix/v4.5.1'v4.5.1
* hotfix/v4.5.1: Bump VERSION Use short switches for emacs server pgrep
Diffstat (limited to 'sh/profile.d/visual.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