diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2023-01-04 10:47:37 -0700 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2023-01-06 11:28:31 -0700 |
commit | 5232cfd0ec6a37cc25216a573bdd5eb424fe6ecb (patch) | |
tree | 23f132e5771408d74b1ac493cbe9463c81f7b556 /bin/emacsclient | |
parent | b41d26112f0c44fa6d4079e6e946a1842047dcdc (diff) | |
download | dotfiles-5232cfd0ec6a37cc25216a573bdd5eb424fe6ecb.tar.gz |
emacsclient wrapper: call notify-send only if stderr not a terminal
Diffstat (limited to 'bin/emacsclient')
-rwxr-xr-x | bin/emacsclient | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/emacsclient b/bin/emacsclient index 2e555710..c0281cf6 100755 --- a/bin/emacsclient +++ b/bin/emacsclient @@ -62,7 +62,8 @@ get_listener () { maybe_notify () { echo >&2 "$1" - $was_set && notify-send --urgency=low --expire-time=10000 "$1" + $was_set && ! [ -t 2 ] \ + && notify-send --urgency=low --expire-time=10000 "$1" } spw_flock () { |