From a53df5404cff08c67f11d99edaab64ea8bec5e88 Mon Sep 17 00:00:00 2001 From: LordMZTE Date: Mon, 1 Nov 2021 00:13:30 +0100 Subject: [PATCH] change powerline --- prompt/src/main.rs | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/prompt/src/main.rs b/prompt/src/main.rs index 48ca325..1ac88f4 100644 --- a/prompt/src/main.rs +++ b/prompt/src/main.rs @@ -5,16 +5,13 @@ use crate::theme::Theme; mod theme; fn main() { - let mut main_prompt = Powerline::new(); + let mut prompt = Powerline::new(); - main_prompt.add_module(Cwd::::new(40, 5, false)); - main_prompt.add_module(Git::::new()); + prompt.add_module(ReadOnly::::new()); + prompt.add_module(Cwd::::new(40, 5, false)); + prompt.add_module(Git::::new()); + prompt.add_module(ExitCode::::new()); + prompt.add_module(Cmd::::new()); - let mut aux_prompt = Powerline::new(); - - aux_prompt.add_module(ExitCode::::new()); - aux_prompt.add_module(ReadOnly::::new()); - aux_prompt.add_module(Cmd::::new()); - - println!("\n{}\n{}", main_prompt, aux_prompt); + println!("{}", prompt); }