how to add alias/function in vim which do not effect makefile builing

I generally add multiple aliased and bash functions in my .bashrc file. eg g for “grep -nri …” , v for vim etc. However some time my new OS has some of the cmds which is get overwritten by my alias hence I see unexpected build failures.

Is there any way to add alias/function in bashrc which should run only on interactive shell and should not run via makefile or other scripts?


All topic