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:
parent
07202e43db
commit
2eb9c0f3dd
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue