From: Nicolas Boisselier Date: Thu, 31 Mar 2016 13:43:22 +0000 (+0200) Subject: vim handle multiple profile X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=cef436cc8063191df1268c8f5264b8fe55efefa6;p=nb.git vim handle multiple profile --- diff --git a/etc/vim/source/option.vim b/etc/vim/source/option.vim index 7c93f8ef..6bd80afa 100644 --- a/etc/vim/source/option.vim +++ b/etc/vim/source/option.vim @@ -29,7 +29,11 @@ set history=1000 " NB 05.03.16 "set shellcmdflag=-c " NB 05.03.16 "set shell=/bin/bash\ --rcfile\ ~/.bash_profile " NB 05.03.16 endif -let $BASH_ENV = "~/.profile" +for file in ["~/.profile", "~/.bashrc", "~/.bash_profile", "~/.zshrc"] + if !empty(glob(file)) + let $BASH_ENV = file + endif +endfor " if [ -n "$BASH_ENV" ]; then . "$BASH_ENV"; fi """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""