Oh-my-zsh: git nested function maximum reached

Get an error when using the standard git command:

[~/site]$ git branch git:1: maximum nested function level reached 

.zshrc:

 plugins=(git osx colored-man gem brew go bundler rake rails) source $ZSH/oh-my-zsh.sh 
+5
source share
2 answers

My mistake, I moved the bash function to zsh:

 gr() { git rebase -i HEAD~$1 } 

Decision:

 function gr() { git rebase -i HEAD~$1 } 
+4
source

I had the same error with another ( export ) command caused by the definition of a random recursive function. I could solve the problem by removing the unnecessary function:

 unset -f export 
0
source

Source: https://habr.com/ru/post/1265521/


All Articles