From 2eb9c0f3dd8f5a3853d83c51639b6d4178e9e0d2 Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Wed, 9 Dec 2020 14:29:13 -0500 Subject: [PATCH] FIX: `notify_file_change` was outputting a command to vim The check for `socat` needs to be silenced too, or vim will output the path to `socat` every time you save a file. --- bin/notify_file_change | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/notify_file_change b/bin/notify_file_change index 8680b97966f..c1053df675a 100755 --- a/bin/notify_file_change +++ b/bin/notify_file_change @@ -6,7 +6,7 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && cd ../tmp && pwd )" SOCKET="$DIR"/file_change.sock if [[ -e "$SOCKET" ]]; then - if command -v socat; then + if command -v socat &> /dev/null; then echo "$1 $2" | socat - UNIX-CONNECT:$SOCKET >/dev/null 2>/dev/null else echo "$1 $2" | nc -U $SOCKET >/dev/null 2>/dev/null