starship: Update config
authorStefan Huber <shuber@sthu.org>
Thu, 18 Feb 2021 12:38:26 +0000 (13:38 +0100)
committerStefan Huber <shuber@sthu.org>
Thu, 18 Feb 2021 12:38:26 +0000 (13:38 +0100)
dotfiles/shell/starship.toml

index 485f1129e38064598a4e0d6269c35b2ceac93eb6..c42f06347b3e931a18e3b56550e70fac5c6ddff4 100644 (file)
@@ -1,3 +1,5 @@
+# https://starship.rs/config/
+
 [directory]
 truncate_to_repo = false
 style = "bold blue"
@@ -20,3 +22,15 @@ style = "bold red"
 [[battery.display]]
 threshold = 30
 style = "bold yellow"
+
+[time]
+disabled = false
+format = "[$time]($style) "
+style = "fg:246"
+
+[custom.screen]
+description = "Displays whether we are in a screen session"
+command = "echo screen"
+when = """test -n "$STY" """
+format = "in [$symbol($output )]($style)"
+style = "bold yellow"