From a5afe347f24e8bb21eff1284739f1fcdbdf6171b Mon Sep 17 00:00:00 2001 From: Matej Focko Date: Sat, 14 Nov 2020 14:53:35 +0100 Subject: [PATCH] Update starship configuration Signed-off-by: Matej Focko --- .../roles/shell/templates/starship.toml.j2 | 29 ++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/playbooks/roles/shell/templates/starship.toml.j2 b/playbooks/roles/shell/templates/starship.toml.j2 index f2a9cae..f661b69 100644 --- a/playbooks/roles/shell/templates/starship.toml.j2 +++ b/playbooks/roles/shell/templates/starship.toml.j2 @@ -1,8 +1,35 @@ +add_newline = false +format = """$username\ +$hostname\ +$git_branch\ +$git_commit\ +$git_state\ +$git_status\ +$cmd_duration\ +$jobs\ +$time\ +$line_break\ +$directory\ +$character""" + [username] +format = "[$user]($style)@" show_always = true [hostname] +format = "[$hostname]($style) " ssh_only = false +[cmd_duration] +format = "\\(took [$duration]($style)\\) " + [time] -disabled = false \ No newline at end of file +disabled = false +format = "at [$time]($style) " + +[directory] +format = "[$path]($style)[$read_only]($read_only_style) " + +[character] +success_symbol = "[%%](bold green)" +error_symbol = "[%%](bold red)" \ No newline at end of file