Loading a Different .vimrc to MacVim

I recently switched from using Vim in terminal to MacVim. The move had a lot to do with the fact that I use GUIs with git and other stuff too. MacVim loaded my .vimrc automatically, which was great, but I wanted a slightly different config for the GUI version of Vim. So here’s a simple trick that allows you to apply a specific configuration for MacVim and another for Vim in shell.
Make a copy of .vimrc and name it .vimrc_shell. Then create a file named .vimrc_macvim.