exit for shells

Exit a Nu shell or exit Nu entirely.

Signature

> exit (exit_code) --now

Parameters

  • exit_code: Exit code to return immediately with
  • --now (-n): Exit out of all shells immediately (exiting Nu)

Examples

Exit the current shell

> exit

Exit all shells (exiting Nu)

> exit --now