I have an alias set up in my .bash_profile file: alias local='npm run start-local'
, and for whatever reason when I open a new terminal session it is trying to run that command npm run start-local
immediately. It works fine if I rename it to "local2". What could be causing this?
I got this alias from my coworker who uses it regularly, and the only difference I know of is that he is not on Mojave.
Edit: something interesting I noticed is that if I change it to alias local='echo '
then I see
NVM_AUTO_MODE
NVM_CURRENT
NVM_MODE
VERSION
-bash: fork: Resource temporarily unavailable
Which adds evidence that it is running my local command when something is trying to use the local variable.
alias local
commands to my .bash_profile and I couldn't reproduce the behaviour you describe. It seems something specific to your machine is causinglocal
to be invoked. – Nic Mar 15 '20 at 19:28