fix: cannot execute colored prompt

This commit is contained in:
iff 2023-07-30 23:48:04 +02:00
parent 58af6c17fc
commit 1f15d92f72
2 changed files with 16 additions and 13 deletions

View file

@ -5,9 +5,11 @@ mod style;
fn main() {
std::env::set_var("LC_ALL", "C");
let corrected_command = corrections::correct_command();
let shell = shell::find_shell();
let last_command = shell::find_last_command(&shell);
let corrected_command = corrections::correct_command(&shell, &last_command);
if let Some(corrected_command) = corrected_command {
corrections::confirm_correction(&corrected_command);
corrections::confirm_correction(&shell, &corrected_command, &last_command);
} else {
println!("No correction found.");
}