Skip to content

Commit

Permalink
alias ls to ls --color=auto (#48)
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfv authored Sep 6, 2024
1 parent 2a1b781 commit f25ea7d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion crates/shell/src/commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,13 @@ impl ShellCommand for LsCommand {
}

fn execute_ls(context: ShellCommandContext) -> ExecuteResult {
let mut args: Vec<OsString> = vec![OsString::from("ls")];
let mut args: Vec<OsString> = vec![OsString::from("ls"), OsString::from("--color=auto")];

context
.args
.iter()
.for_each(|arg| args.push(OsString::from(arg)));

let exit_code = uu_ls(args.into_iter());
ExecuteResult::from_exit_code(exit_code)
}

0 comments on commit f25ea7d

Please sign in to comment.