mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 22:47:43 +02:00
Stdout/Stderr redirection (#7185)
This adds new pipeline connectors called out> and err> which redirect either stdout or stderr to a file. You can also use out+err> (or err+out>) to redirect both streams into a file.
This commit is contained in:
@ -34,6 +34,10 @@ pub fn get_shape_color(shape: String, conf: &Config) -> Style {
|
||||
"shape_variable" => Style::new().fg(Color::Purple),
|
||||
"shape_flag" => Style::new().fg(Color::Blue).bold(),
|
||||
"shape_custom" => Style::new().fg(Color::Green),
|
||||
"shape_pipe" => Style::new().fg(Color::Purple).bold(),
|
||||
"shape_redirection" => Style::new().fg(Color::Purple).bold(),
|
||||
"shape_and" => Style::new().fg(Color::Purple).bold(),
|
||||
"shape_or" => Style::new().fg(Color::Purple).bold(),
|
||||
"shape_nothing" => Style::new().fg(Color::LightCyan),
|
||||
_ => Style::default(),
|
||||
},
|
||||
|
Reference in New Issue
Block a user