1
0
mirror of https://github.com/nushell/nushell.git synced 2025-07-31 10:09:35 +02:00
Files
.azure
.cargo
.circleci
.github
assets
crates
debian
docker
docs
commands
README.md
add.md
append.md
average.md
cd.md
compact.md
config.md
count.md
date.md
default.md
echo.md
edit.md
enter.md
env.md
exit.md
fetch.md
first.md
format.md
from-csv.md
from-json.md
from-ods.md
from-toml.md
from-tsv.md
from-xlsx.md
from-xml.md
from-yaml.md
get.md
group-by.md
help.md
histogram.md
history.md
inc.md
last.md
lines.md
nth.md
open.md
pick.md
pivot.md
prepend.md
ps.md
reject.md
reverse.md
save.md
shells.md
size.md
sort-by.md
split-column.md
split-row.md
str.md
sum.md
sys.md
tags.md
to-csv.md
to-json.md
to-toml.md
to-tsv.md
to-url.md
to-yaml.md
trim.md
uniq.rs
version.md
where.md
which.md
docker.md
philosophy.md
images
src
tests
.editorconfig
.gitignore
.gitpod.Dockerfile
.gitpod.yml
CODE_OF_CONDUCT.md
Cargo.lock
Cargo.toml
LICENSE
Makefile.toml
README.md
TODO.md
build.rs
features.toml
rustfmt.toml
2019-10-07 23:21:58 +08:00

1.2 KiB

enter

This command creates a new shell and begin at this path.

Examples

/home/foobar> cat user.json
{
	"Name": "Peter",
	"Age": 30,
	"Telephone": 88204828,
	"Country": "Singapore"
}
/home/foobar> enter user.json
/> ls
━━━━━━━┯━━━━━┯━━━━━━━━━━━┯━━━━━━━━━━━
 Name  │ Age │ Telephone │ Country
───────┼─────┼───────────┼───────────
 Peter │  3088204828 │ Singapore
━━━━━━━┷━━━━━┷━━━━━━━━━━━┷━━━━━━━━━━━
/> exit
/home/foobar>

It also provides the ability to work with multiple directories at the same time. This command will allow you to create a new "shell" and enter it at the specified path. You can toggle between this new shell and the original shell with the p (for previous) and n (for next), allowing you to navigate around a ring buffer of shells. Once you're done with a shell, you can exit it and remove it from the ring buffer.

/> enter /tmp
/tmp> enter /usr
/usr> enter /bin
/bin> enter /opt
/opt> p
/bin> p
/usr> p
/tmp> p
/> n
/tmp>