if you define the shell as interactive, vim will load your .bashrc or .bash_profile. By default, it is not loaded.
It can be done:
:set shellcmdflag=-ic
The default is only used -c, :h shellcmdflagto see the details. Of course you can add it to your .vimrc file.
source
share