I'm writing a shell script (zsh) that will run git commands for a set of directories. Some of these are projects with .rvmrc
files which can take a while to run. When I cd
into the directory to run a command, it activates the .rvmrc
which really slows down the script quite a bit.
Example command: $(cd $dir && exec git branch)
I would like to either run the commands without cd
ing into the directory in my script, or temporarily deactivate the .rvmrc
file so cd
ing into the directory does not run the rvmrc.
Any thoughts?