nushell/docs/commands/p.md

349 B

title layout version
p command 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

> mkdir foo bar; enter foo; enter ../bar; p

Run p several times and note the changes of current directory

> p