From: Frank Terbeck Date: Tue, 24 Jul 2012 20:34:03 +0000 (+0200) Subject: Only define vim() if vim is available X-Git-Tag: v0.7.0~8 X-Git-Url: http://git.grml.org/?a=commitdiff_plain;ds=sidebyside;h=76ee162ea1c6efc0cea1014f31affb1697be6abb;p=grml-etc-core.git Only define vim() if vim is available Signed-off-by: Frank Terbeck --- diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index 3b65a09..2d5c189 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -2156,9 +2156,11 @@ deswap() { # VIM_OPTIONS=( -p ) # This will cause vim to send every file given on the # commandline to be send to it's own tab (needs vim7). -vim() { - VIM_PLEASE_SET_TITLE='yes' command vim ${VIM_OPTIONS} "$@" -} +if check_com vim; then + vim() { + VIM_PLEASE_SET_TITLE='yes' command vim ${VIM_OPTIONS} "$@" + } +fi # make a backup of a file bk() {