From fda69354db59452801109f8dca562ce2e491495a Mon Sep 17 00:00:00 2001 From: Fernando Herrera Date: Mon, 13 Sep 2021 21:02:10 +0100 Subject: [PATCH] change name to command_prompt (#4003) --- crates/nu-cli/src/cli.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/nu-cli/src/cli.rs b/crates/nu-cli/src/cli.rs index 96742501f8..78a69cd385 100644 --- a/crates/nu-cli/src/cli.rs +++ b/crates/nu-cli/src/cli.rs @@ -33,7 +33,7 @@ use std::path::PathBuf; // Name of environment variable where the prompt could be stored #[cfg(feature = "rustyline-support")] -const PROMPT_STRING: &str = "PROMPT_STRING"; +const PROMPT_COMMAND: &str = "PROMPT_COMMAND"; pub fn search_paths() -> Vec { use std::env; @@ -301,9 +301,9 @@ pub fn cli( let cwd = context.shell_manager().path(); - // Check if the PROMPT_STRING env variable is set. This env variable + // Check if the PROMPT_COMMAND env variable is set. This env variable // contains nu code that is used to overwrite the prompt - let colored_prompt = match context.scope.get_env(PROMPT_STRING) { + let colored_prompt = match context.scope.get_env(PROMPT_COMMAND) { Some(env_prompt) => evaluate_prompt_string(&env_prompt, &context, &cwd), None => { if let Some(prompt) = &prompt {