I have defined the following alias in my .gitconfig:
[alias]
teamcity = ! tc
tc is a shell function I defined in my .bashrc file. For some reason, I get the following error:
[aafghani-03:~/git/workday amirafghani(master)]$ git teamcity
tc: tc: command not found
Anyone know what I can do to solve this? I’m trying to keep the function in my .bashrc
file if possible.
Make it like so
This won’t work when the alias is defined outside the bash startup files. But you clearly state it’s in .bashrc, so you’re good