2022-02-14 03:22:51 +01:00
|
|
|
---
|
|
|
|
title: p
|
|
|
|
layout: command
|
|
|
|
version: 0.59.0
|
|
|
|
---
|
2021-05-30 02:57:04 +02:00
|
|
|
|
2022-02-14 03:22:51 +01:00
|
|
|
Switch to the previous shell.
|
2021-05-30 02:57:04 +02:00
|
|
|
|
2022-02-14 03:22:51 +01:00
|
|
|
## Signature
|
|
|
|
|
|
|
|
```> p ```
|
2022-02-24 13:17:05 +01:00
|
|
|
|
|
|
|
## 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
|
|
|
|
```
|