forked from janek/mostr
feat(main): improve prompt symbol
This commit is contained in:
parent
e9bee3c114
commit
b9307b7b5d
|
@ -346,10 +346,11 @@ async fn main() -> Result<()> {
|
|||
println!();
|
||||
let tasks = relays.get(&selected_relay).unwrap();
|
||||
let prompt = format!(
|
||||
"{} {}{}) ",
|
||||
"{} {}{}{}",
|
||||
selected_relay.as_ref().map_or(LOCAL_RELAY_NAME.to_string(), |url| url.to_string()).dimmed(),
|
||||
tasks.get_task_path(tasks.get_position()).bold(),
|
||||
tasks.get_prompt_suffix().italic(),
|
||||
"❯ ".dimmed()
|
||||
);
|
||||
match rl.readline(&prompt) {
|
||||
Ok(input) => {
|
||||
|
|
Loading…
Reference in New Issue