From d601f800c16998dd53ac41bc672fda2644e20c9d Mon Sep 17 00:00:00 2001 From: Joakim Hulthe Date: Thu, 22 Apr 2021 19:17:46 +0200 Subject: [PATCH] Add stl as shell prompt plugin --- tree/.config/starship.toml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tree/.config/starship.toml b/tree/.config/starship.toml index 3cc068b..e218320 100644 --- a/tree/.config/starship.toml +++ b/tree/.config/starship.toml @@ -12,3 +12,10 @@ format = "[$user]($style)@" ssh_only = false format = "[$hostname]($style) in " +[custom.stl] +description = "time logger" +when = "stl stat -f /home/hulthe/.stld" # touch the file, but don't create it +command = "cat /home/hulthe/.stld" +symbol = "🕑" +style = "italic bright-purple" +format = "[$symbol ($output )]($style)"