From c402799c0816336995d3764f42c54edf60d6db55 Mon Sep 17 00:00:00 2001 From: surtur Date: Sun, 1 May 2022 00:50:53 +0200 Subject: [PATCH] starship: add custom Harelang module shows currently installed version of Hare check out https://harelang.org/ --- .config/starship.toml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.config/starship.toml b/.config/starship.toml index 92503de..da3b9a5 100644 --- a/.config/starship.toml +++ b/.config/starship.toml @@ -172,3 +172,14 @@ format = "[$symbol]($style) " [zig] disabled = false format = "[$symbol]($style)" + +[custom.hare] +disabled = false +# check out https://harelang.org/ +description = "The currently installed version of Harelang" +detect_extensions = ["ha"] +# since there is no hare emoji so far, the one for rabbit is used +symbol = "🐰 " +command = "hare version | cut -f 2 -d ' '" +style = "dimmed bold bright-black" +format = "$symbol[($output)]($style) "