|
@ -13,6 +13,9 @@ impl Builtin for ChangePrompt { |
|
|
} else if let Some(style) = args.get(0) {
|
|
|
} else if let Some(style) = args.get(0) {
|
|
|
match style.to_lowercase().as_str() {
|
|
|
match style.to_lowercase().as_str() {
|
|
|
"none" => config.prompt_style = PromptStyle::None,
|
|
|
"none" => config.prompt_style = PromptStyle::None,
|
|
|
|
|
|
"simple-directory" | "simple_directory" | "simpledirectory" => {
|
|
|
|
|
|
config.prompt_style = PromptStyle::SimpleDirectory
|
|
|
|
|
|
}
|
|
|
_ => {
|
|
|
_ => {
|
|
|
return Err(ShellError::ExecuteFailure(format!(
|
|
|
return Err(ShellError::ExecuteFailure(format!(
|
|
|
"{} is not a valid prompt style",
|
|
|
"{} is not a valid prompt style",
|
|
|