diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2019-01-02 23:33:49 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2019-01-02 23:33:49 +1300 |
commit | f951cb7a71583e5384f8f26110cc4b16a0f05304 (patch) | |
tree | 21929506193865aa29d976be6037f32480637000 /sh/profile.d/visual.sh | |
parent | Merge branch 'release/v4.5.0' into develop (diff) | |
parent | Bump VERSION (diff) | |
download | dotfiles-f951cb7a71583e5384f8f26110cc4b16a0f05304.tar.gz dotfiles-f951cb7a71583e5384f8f26110cc4b16a0f05304.zip |
Merge branch 'hotfix/v4.5.1' into develop
* 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.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 |