title: Get the function name inside a Z shell function
body: <p>The solution for Bash is here: <a href="https://stackoverflow.com/q/1835943/241142">How to determine function name from inside a function</a></p>
  
  <p>How can I do the same thing in Z shell, getting the function name from inside the function?</p>
  
  <p>Update: there is a similar but distinct question asking about getting the name of the <em>calling</em> function.  It is quite plain that the <em>calling</em> function and <em>current</em> function are distinct things. Although the answers are closely related, the questions are entirely distinct.</p>