From c32cb8880ec44d7fb11948e9a62b471975fed978 Mon Sep 17 00:00:00 2001 From: Maximilian Friedersdorff Date: Thu, 7 Dec 2017 13:50:28 +0000 Subject: [PATCH] alias vim='gvim -v' only if gvim exists --- bash/.bash_aliases | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bash/.bash_aliases b/bash/.bash_aliases index 041788c..de52567 100644 --- a/bash/.bash_aliases +++ b/bash/.bash_aliases @@ -21,4 +21,6 @@ function la { fi } alias tmux='TERM=xterm-256color tmux' -alias vim='gvim -v' +if [ -x /usr/bin/gvim ]; then + alias vim='gvim -v' +fi -- 2.46.2