mirror of
https://github.com/Llewellynvdm/starship.git
synced 2024-12-29 04:23:26 +00:00
fix: let-env warning when using nushell (#4893)
Fixed a startup error, when using nushell. The nushell warns about not using `let-env` for configuring `config`. I have removed the `load-env` and just added a `let-env` for the `config` as the documentation recommends: https://www.nushell.sh/book/environment.html#let-env
This commit is contained in:
parent
4e0295125d
commit
e6c5571fc9
@ -15,12 +15,11 @@ let-env PROMPT_COMMAND = {
|
||||
# Whether we have config items
|
||||
let has_config_items = (not ($env | get -i config | is-empty))
|
||||
|
||||
let config = if $has_config_items {
|
||||
let-env config = if $has_config_items {
|
||||
$env.config | upsert render_right_prompt_on_last_line true
|
||||
} else {
|
||||
{render_right_prompt_on_last_line: true}
|
||||
}
|
||||
{config: $config} | load-env
|
||||
|
||||
let-env PROMPT_COMMAND_RIGHT = {
|
||||
let width = (term size).columns
|
||||
|
Loading…
Reference in New Issue
Block a user