Skip to content

Commit

Permalink
Update Nushell Book with copy-able examples. (#1692)
Browse files Browse the repository at this point in the history
* 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]>
  • Loading branch information
3 people authored Dec 22, 2024
1 parent 767baa8 commit 97e7cab
Show file tree
Hide file tree
Showing 50 changed files with 2,427 additions and 2,436 deletions.
4 changes: 2 additions & 2 deletions book/3rdpartyprompts.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ If you like [oh-my-posh](https://ohmyposh.dev/), you can use oh-my-posh with Nus

```nu
# Generate the .oh-my-posh.nu file
> oh-my-posh init nu --config ~/.poshthemes/M365Princess.omp.json
oh-my-posh init nu --config ~/.poshthemes/M365Princess.omp.json
# Initialize oh-my-posh.nu at shell startup by adding this line in your config.nu file
> source ~/.oh-my-posh.nu
source ~/.oh-my-posh.nu
```

For MacOS users:
Expand Down
6 changes: 3 additions & 3 deletions book/aliases.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,19 @@ Aliases in Nushell offer a way of doing a simple replacement of command calls (b
For example, let's create an alias called `ll` which will expand to `ls -l`.

```nu
> alias ll = ls -l
alias ll = ls -l
```

We can now call this alias:

```nu
> ll
ll
```

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:

```nu
> ll -a
ll -a
```

And get the equivalent to having typed `ls -l -a`.
Expand Down
Loading

0 comments on commit 97e7cab

Please sign in to comment.