mirror of
https://github.com/starship/starship.git
synced 2024-11-28 19:24:54 +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
|
```nushell
|
||||||
'
|
'
|
||||||
let starship_path = $nu.default-config-dir | path join scripts starship.nu
|
let starship_path = $nu.default-config-dir | path join scripts starship.nu
|
||||||
if $nu.is-interactive {
|
starship init nu | save $starship_path --force
|
||||||
starship init nu | save $starship_path --force
|
' | save $nu.env-path --append
|
||||||
}' | save $nu.env-path --append
|
"\nuse starship.nu" | save $nu.config-path --append
|
||||||
'
|
|
||||||
if $nu.is-interactive {
|
|
||||||
use 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`:
|
If you prefer to keep your dotfiles clean you can save it to a different directory then update `$env.NU_LIB_DIRS`:
|
||||||
|
|
||||||
```nushell
|
```nushell
|
||||||
'
|
"\n$env.NU_LIB_DIRS ++= ($starship_path | path dirname | to nuon)" | save $nu.env-path --append
|
||||||
$env.NU_LIB_DIRS ++= ($starship_path | path dirname | to nuon)
|
|
||||||
' | save $nu.env-path --append
|
|
||||||
```
|
```
|
||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
@ -142,21 +142,15 @@ description: Starship is the minimal, blazing fast, and extremely customizable p
|
|||||||
```nushell
|
```nushell
|
||||||
'
|
'
|
||||||
let starship_path = $nu.default-config-dir | path join scripts starship.nu
|
let starship_path = $nu.default-config-dir | path join scripts starship.nu
|
||||||
if $nu.is-interactive {
|
|
||||||
starship init nu | save $starship_path --force
|
starship init nu | save $starship_path --force
|
||||||
}' | save $nu.env-path --append
|
' | save $nu.env-path --append
|
||||||
'
|
"\nuse starship.nu" | save $nu.config-path --append
|
||||||
if $nu.is-interactive {
|
|
||||||
use 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`:
|
If you prefer to keep your dotfiles clean you can save it to a different directory then update `$env.NU_LIB_DIRS`:
|
||||||
|
|
||||||
```nushell
|
```nushell
|
||||||
'
|
"\n$env.NU_LIB_DIRS ++= ($starship_path | path dirname | to nuon)" | save $nu.env-path --append
|
||||||
$env.NU_LIB_DIRS ++= ($starship_path | path dirname | to nuon)
|
|
||||||
' | save $nu.env-path --append
|
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Xonsh
|
#### Xonsh
|
||||||
|
Loading…
Reference in New Issue
Block a user