Skip to content

Commit 97e7cab

Browse files
Update Nushell Book with copy-able examples. (#1692)
* fix typo in tmp/random * fix typo in stat git * update book docs with proper copy-able examples * update de book and contributor book * Update book/environment.md Co-authored-by: Douglas <[email protected]> * Update de/book/loading_data.md Co-authored-by: Douglas <[email protected]> * Update book/pipelines.md Co-authored-by: Douglas <[email protected]> * Update book/types_of_data.md Co-authored-by: Douglas <[email protected]> * fix indentations * fix indentations --------- Co-authored-by: Joshua Nussbaum <[email protected]> Co-authored-by: Douglas <[email protected]>
1 parent 767baa8 commit 97e7cab

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+2427
-2436
lines changed

book/3rdpartyprompts.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ If you like [oh-my-posh](https://ohmyposh.dev/), you can use oh-my-posh with Nus
2525

2626
```nu
2727
# Generate the .oh-my-posh.nu file
28-
> oh-my-posh init nu --config ~/.poshthemes/M365Princess.omp.json
28+
oh-my-posh init nu --config ~/.poshthemes/M365Princess.omp.json
2929
3030
# Initialize oh-my-posh.nu at shell startup by adding this line in your config.nu file
31-
> source ~/.oh-my-posh.nu
31+
source ~/.oh-my-posh.nu
3232
```
3333

3434
For MacOS users:

book/aliases.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,19 @@ Aliases in Nushell offer a way of doing a simple replacement of command calls (b
55
For example, let's create an alias called `ll` which will expand to `ls -l`.
66

77
```nu
8-
> alias ll = ls -l
8+
alias ll = ls -l
99
```
1010

1111
We can now call this alias:
1212

1313
```nu
14-
> ll
14+
ll
1515
```
1616

1717
Once we do, it's as if we typed `ls -l`. This also allows us to pass in flags or positional parameters. For example, we can now also write:
1818

1919
```nu
20-
> ll -a
20+
ll -a
2121
```
2222

2323
And get the equivalent to having typed `ls -l -a`.

0 commit comments

Comments
 (0)