Skip to content

Commit

Permalink
changed visual of shell name printing
Browse files Browse the repository at this point in the history
  • Loading branch information
bexxmodd committed Jul 21, 2021
1 parent 9b93dab commit ac0d207
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/shellname.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,14 @@ impl ShellName {
name: user.clone(),
current_dir: current_dir.to_string(),
shell_name: format!(
"{}{}{}:{}§ {}",
"{}{}{}:{} {}\n{}└─§ {}",
color::Fg(color::Red),
user,
color::Fg(color::Cyan),
current_dir,
color::Fg(color::Reset),
color::Fg(color::Red),
color::Fg(color::Reset),
),
}
}
Expand All @@ -34,12 +36,14 @@ impl ShellName {
}
}
self.shell_name = format!(
"{}{}{}:{}§ {}",
"{}{}{}:{} {}\n{}└─§ {}",
color::Fg(color::Red),
self.name.to_string(),
color::Fg(color::Cyan),
&self.current_dir,
color::Fg(color::Reset),
color::Fg(color::Red),
color::Fg(color::Reset),
)
}
}
Expand Down

0 comments on commit ac0d207

Please sign in to comment.