mirror of
https://github.com/danbulant/nushell
synced 2026-05-24 12:35:59 +00:00
Merge pull request #756 from coolshaurya/exit-command-docs
Create exit command documentation
This commit is contained in:
commit
27882efd6b
1 changed files with 30 additions and 0 deletions
30
docs/commands/exit.md
Normal file
30
docs/commands/exit.md
Normal file
|
|
@ -0,0 +1,30 @@
|
||||||
|
# exit
|
||||||
|
|
||||||
|
Exits the nu shell. If you have multiple nu shells, use `exit --now` to exit all of them.
|
||||||
|
|
||||||
|
## Examples
|
||||||
|
|
||||||
|
```shell
|
||||||
|
> exit
|
||||||
|
```
|
||||||
|
|
||||||
|
```
|
||||||
|
/home/username/stuff/books> shells
|
||||||
|
---+---+------------+----------------------------
|
||||||
|
# | | name | path
|
||||||
|
---+---+------------+----------------------------
|
||||||
|
0 | | filesystem | /home/username/stuff/notes
|
||||||
|
1 | | filesystem | /home/username/stuff/videos
|
||||||
|
2 | X | filesystem | /home/username/stuff/books
|
||||||
|
---+---+------------+----------------------------
|
||||||
|
/home/username/stuff/books> exit
|
||||||
|
/home/username/stuff/videos> shells
|
||||||
|
---+---+------------+----------------------------
|
||||||
|
# | | name | path
|
||||||
|
---+---+------------+----------------------------
|
||||||
|
0 | | filesystem | /home/username/stuff/notes
|
||||||
|
1 | X | filesystem | /home/username/stuff/videos
|
||||||
|
---+---+------------+----------------------------
|
||||||
|
/home/username/stuff/videos> exit --now
|
||||||
|
exits both the shells
|
||||||
|
```
|
||||||
Loading…
Reference in a new issue