Skip to content

Commit

Permalink
update book docs with proper copy-able examples
Browse files Browse the repository at this point in the history
  • Loading branch information
0x4D5352 committed Dec 21, 2024
1 parent 187ce85 commit 8c3d8c2
Show file tree
Hide file tree
Showing 28 changed files with 1,882 additions and 1,892 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 8c3d8c2

Please sign in to comment.