Merge pull request #1030 from jonathandturner/more_doc_updates

Update some command docs
This commit is contained in:
Jonathan Turner 2019-11-29 17:53:02 -08:00 committed by GitHub
commit 1ba69e4b11
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 53 additions and 54 deletions

View File

@ -9,22 +9,22 @@ Exits the nu shell. If you have multiple nu shells, use `exit --now` to exit all
``` ```
``` ```
/home/username/stuff/books> shells > shells
---+---+------------+---------------------------- ━━━┯━━━┯━━━━━━━━━━━━┯━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
# | | name | path # │ │ name │ path
---+---+------------+---------------------------- ───┼───┼────────────┼─────────────────────────────────────
0 | | filesystem | /home/username/stuff/notes 0 │ │ filesystem │ /home/jonathanturner/Source/nushell
1 | | filesystem | /home/username/stuff/videos 1 │ │ filesystem │ /home
2 | X | filesystem | /home/username/stuff/books 2 │ X │ filesystem │ /usr
---+---+------------+---------------------------- ━━━┷━━━┷━━━━━━━━━━━━┷━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
/home/username/stuff/books> exit > exit
/home/username/stuff/videos> shells > shells
---+---+------------+---------------------------- ━━━┯━━━┯━━━━━━━━━━━━┯━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
# | | name | path # │ │ name │ path
---+---+------------+---------------------------- ───┼───┼────────────┼─────────────────────────────────────
0 | | filesystem | /home/username/stuff/notes 0 │ │ filesystem │ /home/jonathanturner/Source/nushell
1 | X | filesystem | /home/username/stuff/videos 1 │ X │ filesystem │ /home
---+---+------------+---------------------------- ━━━┷━━━┷━━━━━━━━━━━━┷━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
/home/username/stuff/videos> exit --now > exit --now
exits both the shells exits both the shells
``` ```

View File

@ -6,17 +6,17 @@ This command increments the value of variable by one.
```shell ```shell
> open rustfmt.toml > open rustfmt.toml
--------- ━━━━━━━━━
edition edition
--------- ─────────
2018 2018
--------- ━━━━━━━━━
> open rustfmt.toml | inc edition > open rustfmt.toml | inc edition
--------- ━━━━━━━━━
edition edition
--------- ─────────
2019 2019
--------- ━━━━━━━━━
``` ```
```shell ```shell

View File

@ -6,21 +6,21 @@ Lists all the active nu shells with a number/index, a name and the path. Also ma
``` ```
> shells > shells
---+---+------------+--------------- ━━━┯━━━┯━━━━━━━━━━━━┯━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
# | | name | path # │ │ name │ path
---+---+------------+--------------- ───┼───┼────────────┼─────────────────────────────────────
0 | | filesystem | /usr 0 │ │ filesystem │ /home/jonathanturner/Source/nushell
1 | | filesystem | /home 1 │ │ filesystem │ /usr
2 | X | filesystem | /home/username 2 │ X │ filesystem │ /home
---+---+------------+--------------- ━━━┷━━━┷━━━━━━━━━━━━┷━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
``` ```
``` ```
/> shells /> shells
---+---+-------------------------------------------------+------------------------------------ ━━━┯━━━┯━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┯━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
# | | name | path # │ │ name │ path
---+---+-------------------------------------------------+------------------------------------ ───┼───┼──────────────────────────────────────────────────┼─────────────────────────────────────
0 | | filesystem | /Users/username/Code/nushell 0 │ │ filesystem │ /home/jonathanturner/Source/nushell
1 | X | {/Users/username/Code/nushell/Cargo.toml} | / 1 │ X │ {/home/jonathanturner/Source/nushell/Cargo.toml} │ /
---+---+-------------------------------------------------+------------------------------------ ━━━┷━━━┷━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┷━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
``` ```

View File

@ -9,6 +9,6 @@ Outputs the nushell version.
━━━━━━━━━ ━━━━━━━━━
version version
───────── ─────────
0.3.0 0.6.0
━━━━━━━━━ ━━━━━━━━━
``` ```

View File

@ -44,26 +44,25 @@ Where with the form `| where readonly` is used to check boolean values. For exam
```shell ```shell
> ls | where size > 4kb > ls | where size > 4kb
----+----------------+------+----------+----------+----------------+---------------- ━━━┯━━━━━━━━━━━━┯━━━━━━┯━━━━━━━━━┯━━━━━━━━━━━━━┯━━━━━━━━━━━━━┯━━━━━━━━━━━━━
# | name | type | readonly | size | accessed | modified # │ name │ type │ size │ created │ accessed │ modified
----+----------------+------+----------+----------+----------------+---------------- ───┼────────────┼──────┼─────────┼─────────────┼─────────────┼─────────────
0 | IMG_1291.jpg | File | | 115.5 KB | a month ago | 4 months ago 0 │ Cargo.lock │ File │ 87.2 KB │ 7 hours ago │ 7 hours ago │ 7 hours ago
1 | README.md | File | | 11.1 KB | 2 days ago | 2 days ago 1 │ README.md │ File │ 19.5 KB │ 7 hours ago │ 7 hours ago │ 7 hours ago
2 | IMG_1291.png | File | | 589.0 KB | a month ago | a month ago 2 │ Cargo.toml │ File │ 4.7 KB │ 7 hours ago │ 7 hours ago │ 7 hours ago
3 | IMG_1381.jpg | File | | 81.0 KB | a month ago | 4 months ago ━━━┷━━━━━━━━━━━━┷━━━━━━┷━━━━━━━━━┷━━━━━━━━━━━━━┷━━━━━━━━━━━━━┷━━━━━━━━━━━━━
4 | butterfly.jpeg | File | | 4.2 KB | a month ago | a month ago
5 | Cargo.lock | File | | 199.6 KB | 22 minutes ago | 22 minutes ago
``` ```
```shell ```shell
> ps | where cpu > 10 > ps | where cpu > 0
---+-------+----------+-------+----------------------------- ━━━┯━━━━━━━┯━━━━━━━━━━━━━━━━━━━━━━━┯━━━━━━━━━━┯━━━━━━━━━━━━━━━━━━━
# | pid | status | cpu | name # │ pid │ name │ status │ cpu
---+-------+----------+-------+----------------------------- ───┼───────┼───────────────────────┼──────────┼───────────────────
0 | 1992 | Sleeping | 44.52 | /usr/bin/gnome-shell 0 │ 1546 │ Xorg │ Sleeping │ 10.65405000000000
1 | 1069 | Sleeping | 16.15 | 1 │ 1769 │ gnome-shell │ Sleeping │ 5.271094000000000
2 | 24116 | Sleeping | 13.70 | /opt/google/chrome/chrome 2 │ 2153 │ gnome-terminal-server │ Sleeping │ 5.193664000000000
3 | 21976 | Sleeping | 12.67 | /usr/share/discord/Discord 3 │ 13556 │ nu_plugin_ps │ Sleeping │ 40.70250000000000
━━━┷━━━━━━━┷━━━━━━━━━━━━━━━━━━━━━━━┷━━━━━━━━━━┷━━━━━━━━━━━━━━━━━━━
``` ```
```shell ```shell