I typed ()
in Terminal and got a prompt:
function>
I can't find any zsh documentation about it (or if it is even related to zsh). I realized I can type any gibberish anygibberish()
and also get the prompt. If you continue to type ()
at the function>
prompt, the prompt grows:
function function function>
There are custom functions in my .zshrc file and this function>
prompt will execute those as if I was at a standard prompt.
function> config
Built-in functions work at the prompt as well:
function> ls -a
What else can the function>
prompt do?