X-Git-Url: https://git.grml.org/?a=blobdiff_plain;f=etc%2Fzsh%2Fzshrc;h=5ac408a7d48267238c4921b9baf0711894efedd9;hb=c6c20943c44c560468c36a5d6874025e87fe67ed;hp=3b65a09120dbf621ab0ebef4fb530e7677a3bd06;hpb=ea65fdc7b49d11a18f62d9aec2116934852a1513;p=grml-etc-core.git diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index 3b65a09..5ac408a 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -969,7 +969,6 @@ if zrcautoload compinit ; then compinit || print 'Notice: no compinit available :(' else print 'Notice: no compinit available :(' - function zstyle { } function compdef { } fi @@ -2156,9 +2155,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() {