From d5646249b803810bf88a48b9770d837bf8783870 Mon Sep 17 00:00:00 2001 From: Matej Focko Date: Thu, 4 Mar 2021 17:14:54 +0100 Subject: [PATCH] Reorganize modules in starship and fix toolbox Signed-off-by: Matej Focko --- playbooks/roles/shell/templates/starship.toml.j2 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/playbooks/roles/shell/templates/starship.toml.j2 b/playbooks/roles/shell/templates/starship.toml.j2 index 78bd759..39bb0aa 100644 --- a/playbooks/roles/shell/templates/starship.toml.j2 +++ b/playbooks/roles/shell/templates/starship.toml.j2 @@ -1,7 +1,7 @@ add_newline = false -format = """${custom.toolbox}\ -$username\ +format = """$username\ $hostname\ +${custom.toolbox}\ $git_branch\ $git_commit\ $git_state\ @@ -35,8 +35,8 @@ format = "[$path]($style)[$read_only]($read_only_style) " [custom.toolbox] when = "ls /run/.containerenv" symbol = " " -command = "~/.local/bin/toolbox_name.sh" -format = "[$symbol($output )]($style)" +command = "bash ~/.local/bin/toolbox_name.sh" +format = "in [$symbol($output )]($style)" style = "bold purple" [character]