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.
This commit is contained in:
Robin Ward 2020-12-09 14:29:13 -05:00
parent 07202e43db
commit 2eb9c0f3dd
1 changed files with 1 additions and 1 deletions

View File

@ -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