mirror of
https://mzte.de/git/LordMZTE/dotfiles.git
synced 2024-12-19 17:23:42 +01:00
change powerline
This commit is contained in:
parent
cb2ccdcd3e
commit
a53df5404c
1 changed files with 7 additions and 10 deletions
|
@ -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::<Theme>::new(40, 5, false));
|
||||
main_prompt.add_module(Git::<Theme>::new());
|
||||
prompt.add_module(ReadOnly::<Theme>::new());
|
||||
prompt.add_module(Cwd::<Theme>::new(40, 5, false));
|
||||
prompt.add_module(Git::<Theme>::new());
|
||||
prompt.add_module(ExitCode::<Theme>::new());
|
||||
prompt.add_module(Cmd::<Theme>::new());
|
||||
|
||||
let mut aux_prompt = Powerline::new();
|
||||
|
||||
aux_prompt.add_module(ExitCode::<Theme>::new());
|
||||
aux_prompt.add_module(ReadOnly::<Theme>::new());
|
||||
aux_prompt.add_module(Cmd::<Theme>::new());
|
||||
|
||||
println!("\n{}\n{}", main_prompt, aux_prompt);
|
||||
println!("{}", prompt);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue