Skip to content

Commit

Permalink
Implement Nu contributor feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
texastoland committed Mar 23, 2024
1 parent d782659 commit 1d2f4d8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 20 deletions.
14 changes: 4 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -344,21 +344,15 @@ Since Nu does [not support `eval`](https://www.nushell.sh/book/how_nushell_code_
```nushell
'
let starship_path = $nu.default-config-dir | path join scripts starship.nu
if $nu.is-interactive {
starship init nu | save $starship_path --force
}' | save $nu.env-path --append
'
if $nu.is-interactive {
use starship.nu
}' | save $nu.config-path --append
starship init nu | save $starship_path --force
' | save $nu.env-path --append
"\nuse starship.nu" | save $nu.config-path --append
```

If you prefer to keep your dotfiles clean you can save it to a different directory then update `$env.NU_LIB_DIRS`:

```nushell
'
$env.NU_LIB_DIRS ++= ($starship_path | path dirname | to nuon)
' | save $nu.env-path --append
"\n$env.NU_LIB_DIRS ++= ($starship_path | path dirname | to nuon)" | save $nu.env-path --append
```

</details>
Expand Down
14 changes: 4 additions & 10 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,21 +142,15 @@ description: Starship is the minimal, blazing fast, and extremely customizable p
```nushell
'
let starship_path = $nu.default-config-dir | path join scripts starship.nu
if $nu.is-interactive {
starship init nu | save $starship_path --force
}' | save $nu.env-path --append
'
if $nu.is-interactive {
use starship.nu
}' | save $nu.config-path --append
starship init nu | save $starship_path --force
' | save $nu.env-path --append
"\nuse starship.nu" | save $nu.config-path --append
```

If you prefer to keep your dotfiles clean you can save it to a different directory then update `$env.NU_LIB_DIRS`:

```nushell
'
$env.NU_LIB_DIRS ++= ($starship_path | path dirname | to nuon)
' | save $nu.env-path --append
"\n$env.NU_LIB_DIRS ++= ($starship_path | path dirname | to nuon)" | save $nu.env-path --append
```

#### Xonsh
Expand Down

0 comments on commit 1d2f4d8

Please sign in to comment.