Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Nushell Book with copy-able examples. #1692

Merged
merged 12 commits into from
Dec 22, 2024
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
Loading