mirror of
https://github.com/nushell/nushell
synced 2024-12-30 15:03:25 +00:00
30 lines
1.5 KiB
Markdown
30 lines
1.5 KiB
Markdown
# exit
|
|
|
|
Exits the nu shell. If you have multiple nu shells, use `exit --now` to exit all of them.
|
|
|
|
## Examples
|
|
|
|
```shell
|
|
> exit
|
|
```
|
|
|
|
```shell
|
|
> shells
|
|
━━━┯━━━┯━━━━━━━━━━━━┯━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
# │ │ name │ path
|
|
───┼───┼────────────┼─────────────────────────────────────
|
|
0 │ │ filesystem │ /home/jonathanturner/Source/nushell
|
|
1 │ │ filesystem │ /home
|
|
2 │ X │ filesystem │ /usr
|
|
━━━┷━━━┷━━━━━━━━━━━━┷━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
> exit
|
|
> shells
|
|
━━━┯━━━┯━━━━━━━━━━━━┯━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
# │ │ name │ path
|
|
───┼───┼────────────┼─────────────────────────────────────
|
|
0 │ │ filesystem │ /home/jonathanturner/Source/nushell
|
|
1 │ X │ filesystem │ /home
|
|
━━━┷━━━┷━━━━━━━━━━━━┷━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
> exit --now
|
|
exits both the shells
|
|
```
|