From f8cac7b64fe02ec7f41978c4fb4bf283ef13bd89 Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Mon, 14 Nov 2022 09:56:00 -0700 Subject: emacsclient wrapper: check other commands we want to use are on PATH --- bin/emacsclient | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'bin/emacsclient') diff --git a/bin/emacsclient b/bin/emacsclient index d7a0d9b2..97d8242d 100755 --- a/bin/emacsclient +++ b/bin/emacsclient @@ -105,8 +105,10 @@ installed_emacsclient=$(PATH=$(echo "$PATH" \ | sed -e "s#$HOME/src/dotfiles/bin:##") \ command -v emacsclient) -command -v ss >/dev/null \ - || exec -a emacsclient "$installed_emacsclient" -a "" "$@" +for external in flock inotifywait perl pwdx ss; do + command -v $external >/dev/null \ + || exec -a emacsclient "$installed_emacsclient" -a "" "$@" +done # We set and export XDG_RUNTIME_DIR such that Emacs doesn't choose # "/tmp/emacs$(id -u)" as the socket dir. -- cgit v1.2.3