zshrc alias gets executed when launching a new terminal

Viewed 1644

I am using zsh and in my config I am adding another alias :

alias recursively_git_pull_all_repo="for dir in $(find . -name ".git"); do cd ${dir%/*}; git pull ; cd -; done"

However this alias seems to get executed every time I open a new terminal (or at least it slows down starting up a new terminal considerably).

How can I add this alias without it being launched every time I open a new terminal ?

2 Answers
Related