mirror of
https://github.com/starship/starship.git
synced 2024-11-25 01:33:41 +01:00
Implement Nu contributor feedback
This commit is contained in:
parent
d7826592eb
commit
1d2f4d8c02
14
README.md
14
README.md
@ -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>
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user