From ff4bdb5ec24a48b6c500cfb8719d24cdedaeba51 Mon Sep 17 00:00:00 2001 From: Joe Groocock Date: Sat, 21 Apr 2018 00:08:53 +0100 Subject: [PATCH] Only start Vim with --servername if supported --- aliases | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/aliases b/aliases index e994393..cd4f162 100644 --- a/aliases +++ b/aliases @@ -58,7 +58,8 @@ alias make="make -j$(nproc)" alias dd='dd status=progress' alias env='env | sort' alias ssh="ssh -tt" -alias vim="vim --servername vim -p" +vim --version 2>/dev/null | command grep -q +clientserver && \ + alias vim="vim --servername vim -p" alias vi=vim alias grip='grip --user=frebib --pass=$GRIP_API_KEY' alias acme.sh='$XDG_CONFIG_HOME/acme.sh/acme.sh --home $XDG_CONFIG_HOME/acme.sh --config-home $XDG_CONFIG_HOME/acme.sh --log $XDG_CONFIG_HOME/acme.sh/acme.sh.log'