feat: expand alias for suggestion

This commit is contained in:
iff 2024-11-16 00:25:28 +01:00
parent 45de0ad8e3
commit 7b9cecfd8d
4 changed files with 22 additions and 16 deletions

View file

@ -53,7 +53,8 @@ fn main() {
}
};
let mut last_command = shell::last_command_expanded_alias(&shell);
let mut last_command = shell::last_command(&shell);
last_command = shell::expand_alias(&shell, &last_command);
let mut error_msg = command_output(&shell, &last_command);
loop {
let suggestion = {