]> git.friedersdorff.com Git - max/dotfiles.git/commitdiff
alias vim='gvim -v' only if gvim exists
authorMaximilian Friedersdorff <max@friedersdorff.com>
Thu, 7 Dec 2017 13:50:28 +0000 (13:50 +0000)
committerMaximilian Friedersdorff <max@friedersdorff.com>
Thu, 7 Dec 2017 13:50:28 +0000 (13:50 +0000)
bash/.bash_aliases

index 041788cd6d7d63e99157654c1f1f7ebde201f11b..de525676956ecfc4d5228ad5efc22f06add7a1de 100644 (file)
@@ -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