0

I have this guard in my .profile:

if [ -n "$BASH_VERSION" ]; then
    if [ -f "$HOME/.bashrc" ]; then
        . "$HOME/.bashrc"
    fi

    if [ -f "$HOME/.bash_aliases" ]; then
        . "$HOME/.bash_aliases"
    fi
fi

Still, I have verified the check is passing for MacVim started from Finder, not only from bash terminal, and .bashrc contains terminal related script that seems to make MacVim not work as expected when started by double click, so I must have this check failing for non-terminal executions. I'm not sure whether this affects MacVim only or just any application. I was expecting $BASH_VERSION empty for anything started from Finder.

Any tips?

  • you might be better of asking that question on superuser.com – Ruskes Jun 17 '14 at 10:02
  • 1
    by debugging I choosed to start using $TERM_PROGRAM instead of $BASH_VERSION in OS X now, this one works. – pepper_chico Jun 17 '14 at 22:42
3

There is a preference in MacVim to do this.

defaults write org.vim.MacVim MMLoginShell 0
  • I'm selecting this as an answer since it address the problem for MacVim although I'll keep employing my solution which fits better for my intentions. – pepper_chico Jul 8 '14 at 23:00
  • keep in mind that if you use MacVIm (GUI Mode) that i uses ~/.gvimrc if there or else it uses the gvimrc integrated inside of MacVIm. – konqui Jul 9 '14 at 5:49

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .