From: Maximilian Friedersdorff Date: Thu, 7 Dec 2017 13:50:28 +0000 (+0000) Subject: alias vim='gvim -v' only if gvim exists X-Git-Url: https://git.friedersdorff.com/?a=commitdiff_plain;h=c32cb8880ec44d7fb11948e9a62b471975fed978;p=max%2Fdotfiles.git alias vim='gvim -v' only if gvim exists --- 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