From 4fd333e4b3a64bcafde540cb8a7eacc1d1a1bead Mon Sep 17 00:00:00 2001 From: hustcer Date: Wed, 16 Oct 2024 14:25:29 +0800 Subject: [PATCH] Remove docs for n,p,g,enter,dexit,shells command --- commands/docs/dexit.md | 18 ---------------- commands/docs/enter.md | 30 -------------------------- commands/docs/g.md | 48 ----------------------------------------- commands/docs/n.md | 32 --------------------------- commands/docs/p.md | 32 --------------------------- commands/docs/shells.md | 32 --------------------------- 6 files changed, 192 deletions(-) delete mode 100644 commands/docs/dexit.md delete mode 100644 commands/docs/enter.md delete mode 100644 commands/docs/g.md delete mode 100644 commands/docs/n.md delete mode 100644 commands/docs/p.md delete mode 100644 commands/docs/shells.md diff --git a/commands/docs/dexit.md b/commands/docs/dexit.md deleted file mode 100644 index c02ba0331b..0000000000 --- a/commands/docs/dexit.md +++ /dev/null @@ -1,18 +0,0 @@ ---- -title: dexit -categories: | - shells -version: 0.99.0 -shells: | - Leaves a previously entered working directory. -usage: | - Leaves a previously entered working directory. ---- - -# `dexit` for [shells](/commands/categories/shells.md) - -
Leaves the currently active working directory if there are multiple shell paths open.
- -## Signature - -```> dexit``` diff --git a/commands/docs/enter.md b/commands/docs/enter.md deleted file mode 100644 index 88580059cb..0000000000 --- a/commands/docs/enter.md +++ /dev/null @@ -1,30 +0,0 @@ ---- -title: enter -categories: | - shells -version: 0.99.0 -shells: | - Enters a new shell at the given path. -usage: | - Enters a new shell at the given path. ---- - -# `enter` for [shells](/commands/categories/shells.md) - -
Enters a new shell at the given path.
- -## Signature - -```> enter (path)``` - -## Parameters - - - `path`: the path to enter as a new shell - -## Examples - -Enter a new shell at path '../dir-foo' -```nu -> enter ../dir-foo - -``` diff --git a/commands/docs/g.md b/commands/docs/g.md deleted file mode 100644 index d01e90ba84..0000000000 --- a/commands/docs/g.md +++ /dev/null @@ -1,48 +0,0 @@ ---- -title: g -categories: | - shells -version: 0.99.0 -shells: | - Switch to a given shell, or list all shells if no given shell number. -usage: | - Switch to a given shell, or list all shells if no given shell number. ---- - -# `g` for [shells](/commands/categories/shells.md) - -
Switch to a given shell, or list all shells if no given shell number.
- -## Signature - -```> g (shell_number)``` - -## Parameters - - - `shell_number`: shell number to change to - -## Examples - -Lists all open shells -```nu -> g - -``` - -Make two directories and enter new shells for them, use `g` to jump to the specific shell -```nu -> mkdir foo bar; enter foo; enter ../bar; g 1 - -``` - -Use `shells` to show all the opened shells and run `g 2` to jump to the third one -```nu -> shells; g 2 - -``` - -Make two directories and enter new shells for them, use `g -` to jump to the last used shell -```nu -> mkdir foo bar; enter foo; enter ../bar; g - - -``` diff --git a/commands/docs/n.md b/commands/docs/n.md deleted file mode 100644 index f9b7e17251..0000000000 --- a/commands/docs/n.md +++ /dev/null @@ -1,32 +0,0 @@ ---- -title: n -categories: | - shells -version: 0.99.0 -shells: | - Switch to the next shell. -usage: | - Switch to the next shell. ---- - -# `n` for [shells](/commands/categories/shells.md) - -
Switch to the next shell.
- -## Signature - -```> n ``` - -## Examples - -Make two directories and enter new shells for them, use `n` to jump to the next shell -```nu -> mkdir foo bar; enter foo; enter ../bar; n - -``` - -Run `n` several times and note the changes of current directory -```nu -> n - -``` diff --git a/commands/docs/p.md b/commands/docs/p.md deleted file mode 100644 index 817a6288f1..0000000000 --- a/commands/docs/p.md +++ /dev/null @@ -1,32 +0,0 @@ ---- -title: p -categories: | - shells -version: 0.99.0 -shells: | - Switch to the previous shell. -usage: | - Switch to the previous shell. ---- - -# `p` for [shells](/commands/categories/shells.md) - -
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 -```nu -> mkdir foo bar; enter foo; enter ../bar; p - -``` - -Run `p` several times and note the changes of current directory -```nu -> p - -``` diff --git a/commands/docs/shells.md b/commands/docs/shells.md deleted file mode 100644 index 91ec3e8317..0000000000 --- a/commands/docs/shells.md +++ /dev/null @@ -1,32 +0,0 @@ ---- -title: shells -categories: | - shells -version: 0.99.0 -shells: | - Lists all open shells. -usage: | - Lists all open shells. ---- - -# `shells` for [shells](/commands/categories/shells.md) - -
Lists all open shells.
- -## Signature - -```> shells ``` - -## Examples - -Enter a new shell at parent path '..' and show all opened shells -```nu -> enter ..; shells - -``` - -Show currently active shell -```nu -> shells | where active == true - -```