diff --git a/nu_scripts/README.md b/nu_scripts/README.md index 3669fd3..64ebbdc 100644 --- a/nu_scripts/README.md +++ b/nu_scripts/README.md @@ -8,15 +8,15 @@ i run the following: - define the upstream remote URL ```bash -let-env NU_SCRIPTS_REMOTE = "ssh://git@github.com/goatfiles/nu_scripts.git" +$env.NU_SCRIPTS_REMOTE = "ssh://git@github.com/goatfiles/nu_scripts.git" ``` - define the local location of the `nu_scripts` ```bash -let-env NU_SCRIPTS_DIR = ($env.GIT_REPOS_HOME | path join "github.com/goatfiles/nu_scripts") +$env.NU_SCRIPTS_DIR = ($env.GIT_REPOS_HOME | path join "github.com/goatfiles/nu_scripts") ``` - make the local `nu_scripts` available to `nushell` ```bash -let-env NU_LIB_DIRS = [ +$env.NU_LIB_DIRS = [ ... $env.NU_SCRIPTS_DIR ] diff --git a/nu_scripts/scripts/shell_prompt.nu b/nu_scripts/scripts/shell_prompt.nu index 4e67bdc..9f27bcc 100644 --- a/nu_scripts/scripts/shell_prompt.nu +++ b/nu_scripts/scripts/shell_prompt.nu @@ -229,7 +229,7 @@ export def-env setup [ --use-right-prompt: bool --indicators = {} ] { - let-env PROMPT_COMMAND = if ($no_left_prompt) { + $env.PROMPT_COMMAND = if ($no_left_prompt) { "" } else if ($use_eldyj_prompt) { {|| create_left_prompt_eldyj} @@ -237,7 +237,7 @@ export def-env setup [ {|| create_left_prompt} } - let-env PROMPT_COMMAND_RIGHT = if ($use_right_prompt) { + $env.PROMPT_COMMAND_RIGHT = if ($use_right_prompt) { {|| create_right_prompt --cwd --repo --cfg} } else { "" @@ -250,7 +250,7 @@ export def-env setup [ vi: {insert: ": ", normal: "> "} } | merge ($indicators)) - let-env PROMPT_INDICATOR = if ($show_prompt_indicator) { $indicators.plain } else { "" } - let-env PROMPT_INDICATOR_VI_INSERT = if ($show_prompt_indicator) { $indicators.vi.insert } else { "" } - let-env PROMPT_INDICATOR_VI_NORMAL = if ($show_prompt_indicator) { $indicators.vi.normal } else { "" } + $env.PROMPT_INDICATOR = if ($show_prompt_indicator) { $indicators.plain } else { "" } + $env.PROMPT_INDICATOR_VI_INSERT = if ($show_prompt_indicator) { $indicators.vi.insert } else { "" } + $env.PROMPT_INDICATOR_VI_NORMAL = if ($show_prompt_indicator) { $indicators.vi.normal } else { "" } }