mirror of
https://github.com/nushell/nushell.git
synced 2024-11-29 20:03:54 +01:00
24 lines
349 B
Markdown
24 lines
349 B
Markdown
---
|
|
title: p
|
|
layout: command
|
|
version: 0.59.1
|
|
---
|
|
|
|
Switch to the previous shell.
|
|
|
|
## Signature
|
|
|
|
```> p ```
|
|
|
|
## Examples
|
|
|
|
Make two directories and enter new shells for them, use `p` to jump to the previous shell
|
|
```shell
|
|
> mkdir foo bar; enter foo; enter ../bar; p
|
|
```
|
|
|
|
Run `p` several times and note the changes of current directory
|
|
```shell
|
|
> p
|
|
```
|