mirror of
https://github.com/TECHNOFAB11/pay-respects.git
synced 2025-12-11 22:10:09 +01:00
fix: cannot execute colored prompt
This commit is contained in:
parent
58af6c17fc
commit
1f15d92f72
2 changed files with 16 additions and 13 deletions
|
|
@ -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.");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue