zsh increment variable code example Example 1: sh increment variable let "i=i+1" Example 2: zsh increment variable i=0 echo $i (( i+=1 )) echo $i